Курсовая работа (т): Автоматизация учета работы автотранспортного предприятия

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам

{= false;;

}

}(haveButton)

{.Name = "toolStrip" + FormDistance.Name;.Text = FormDistance.Text;.Image = FormDistance.Icon.ToBitmap();.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;.CheckState = CheckState.Indeterminate;.Click += new EventHandler(toolStripFormDistance_Click);.Items.Add(item);

}

}

{.Name = "toolStrip" + FormDistance.Name;.Text = FormDistance.Text;.Image = FormDistance.Icon.ToBitmap();.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;.CheckState = CheckState.Indeterminate;.Click += new EventHandler(toolStripFormDistance_Click);.Items.Add(item);

}

}toolStripFormDistance_Click(object sender, EventArgs e)

{OpenForm = false;(Form Child in this.MdiChildren)

{(Child is FormDistance)

{= true;

}

}(OpenForm)

{index = 0;(int x = 0; x < this.MdiChildren.Length; x++)

{(MdiChildren[x].Name == "FormDistance")

{= x;

}

}(this.ActiveMdiChild == this.MdiChildren[index])

{.MdiChildren[index].WindowState = FormWindowState.Minimized;

}

{(MdiChildren[index].Visible == true)

{.MdiChildren[index].Activate();

}

{.MdiChildren[index].WindowState = FormWindowState.Normal;.MdiChildren[index].Visible = true;

}

}

}

}void FormDistance_RemoveToolStrip()

{FD = new FormDistance();(int x = 0; x < toolStrip1.Items.Count; x++)

{(toolStrip1.Items[x].Name == "toolStrip" + FD.Name)

{.Items.RemoveAt(x);

}

}

}void FormRevenue_AddToolStrip()

{item = new ToolStripButton();FormRevenue = new FormRevenue();(toolStrip1.Items.Count != 0)

{haveButton = true;(ToolStripButton oldButton in this.toolStrip1.Items)

{(oldButton.Name == "toolStrip" + FormRevenue.Name)

{= false;;

}

}(haveButton)

{.Name = "toolStrip" + FormRevenue.Name;.Text = FormRevenue.Text;.Image = FormRevenue.Icon.ToBitmap();.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;.CheckState = CheckState.Indeterminate;.Click += new EventHandler(toolStripFormRevenue_Click);.Items.Add(item);

}

}

{.Name = "toolStrip" + FormRevenue.Name;.Text = FormRevenue.Text;.Image = FormRevenue.Icon.ToBitmap();.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;.CheckState = CheckState.Indeterminate;.Click += new EventHandler(toolStripFormRevenue_Click);.Items.Add(item);

}

}toolStripFormRevenue_Click(object sender, EventArgs e)

{OpenForm = false;(Form Child in this.MdiChildren)

{(Child is FormRevenue)

{= true;

}

}(OpenForm)

{index = 0;(int x = 0; x < this.MdiChildren.Length; x++)

{(MdiChildren[x].Name == "FormRevenue")

{= x;

}

}(this.ActiveMdiChild == this.MdiChildren[index])

{.MdiChildren[index].WindowState = FormWindowState.Minimized;

}

{(MdiChildren[index].Visible == true)

{.MdiChildren[index].Activate();

}

{.MdiChildren[index].WindowState = FormWindowState.Normal;.MdiChildren[index].Visible = true;

}

}

}

}void FormRevenue_RemoveToolStrip()

{FR = new FormRevenue();(int x = 0; x < toolStrip1.Items.Count; x++)

{(toolStrip1.Items[x].Name == "toolStrip" + FR.Name)

{.Items.RemoveAt(x);

}

}

}void FormWorkedTime_AddToolStrip()

{item = new ToolStripButton();FormWorkedTime = new FormWorkedTime();(toolStrip1.Items.Count != 0)

{haveButton = true;(ToolStripButton oldButton in this.toolStrip1.Items)

{(oldButton.Name == "toolStrip" + FormWorkedTime.Name)

{= false;;

}

}(haveButton)

{.Name = "toolStrip" + FormWorkedTime.Name;.Text = FormWorkedTime.Text;.Image = FormWorkedTime.Icon.ToBitmap();.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;.CheckState = CheckState.Indeterminate;.Click += new EventHandler(toolStripFormWorkedTime_Click);.Items.Add(item);

}

}

{.Name = "toolStrip" + FormWorkedTime.Name;.Text = FormWorkedTime.Text;.Image = FormWorkedTime.Icon.ToBitmap();.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;.CheckState = CheckState.Indeterminate;.Click += new EventHandler(toolStripFormWorkedTime_Click);.Items.Add(item);

}

}toolStripFormWorkedTime_Click(object sender, EventArgs e)

{OpenForm = false;(Form Child in this.MdiChildren)

{(Child is FormWorkedTime)

{= true;

}

}(OpenForm)

{index = 0;(int x = 0; x < this.MdiChildren.Length; x++)

{(MdiChildren[x].Name == "FormWorkedTime")

{= x;

}

}(this.ActiveMdiChild == this.MdiChildren[index])

{.MdiChildren[index].WindowState = FormWindowState.Minimized;

}

{(MdiChildren[index].Visible == true)

{.MdiChildren[index].Activate();

}

{.MdiChildren[index].WindowState = FormWindowState.Normal;.MdiChildren[index].Visible = true;

}

}

}

}void FormWorkedTime_RemoveToolStrip()

{FWT = new FormWorkedTime();(int x = 0; x < toolStrip1.Items.Count; x++)

{(toolStrip1.Items[x].Name == "toolStrip" + FWT.Name)

{.Items.RemoveAt(x);

}

}

}void FormWaySheets_AddToolStrip()

{item = new ToolStripButton();FormWaySheets = new FormWaySheets();(toolStrip1.Items.Count != 0)

{haveButton = true;(ToolStripButton oldButton in this.toolStrip1.Items)

{(oldButton.Name == "toolStrip" + FormWaySheets.Name)

{= false;;

}

}(haveButton)

{.Name = "toolStrip" + FormWaySheets.Name;.Text = FormWaySheets.Text;.Image = FormWaySheets.Icon.ToBitmap();.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;.CheckState = CheckState.Indeterminate;.Click += new EventHandler(toolStripFormWaySheets_Click);.Items.Add(item);

}

}

{.Name = "toolStrip" + FormWaySheets.Name;.Text = FormWaySheets.Text;.Image = FormWaySheets.Icon.ToBitmap();.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;.CheckState = CheckState.Indeterminate;.Click += new EventHandler(toolStripFormWaySheets_Click);.Items.Add(item);

}

}toolStripFormWaySheets_Click(object sender, EventArgs e)

{OpenForm = false;(Form Child in this.MdiChildren)

{(Child is FormWaySheets)

{= true;

}

}(OpenForm)

{index = 0;(int x = 0; x < this.MdiChildren.Length; x++)

{(MdiChildren[x].Name == "FormWaySheet")

{= x;

}

}(this.ActiveMdiChild == this.MdiChildren[index])

{.MdiChildren[index].WindowState = FormWindowState.Minimized;

}

{(MdiChildren[index].Visible == true)

{.MdiChildren[index].Activate();

}

{.MdiChildren[index].WindowState = FormWindowState.Normal;.MdiChildren[index].Visible = true;

}

}

}

}void FormWaySheets_RemoveToolStrip()

{FWS = new FormWaySheets();(int x = 0; x < toolStrip1.Items.Count; x++)

{(toolStrip1.Items[x].Name == "toolStrip" + FWS.Name)

{.Items.RemoveAt(x);

}

}

}void FormDocument_AddToolStrip()

{item = new ToolStripButton();FormDocument = new FormDocument();(toolStrip1.Items.Count != 0)

{haveButton = true;(ToolStripButton oldButton in this.toolStrip1.Items)

{(oldButton.Name == "toolStrip" + FormDocument.Name)

{= false;;

}

}(haveButton)

{.Name = "toolStrip" + FormDocument.Name;.Text = FormDocument.Text;.Image = FormDocument.Icon.ToBitmap();.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;.CheckState = CheckState.Indeterminate;.Click += new EventHandler(toolStripFormDocument_Click);.Items.Add(item);

}

}

{.Name = "toolStrip" + FormDocument.Name;.Text = FormDocument.Text;.Image = FormDocument.Icon.ToBitmap();.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;.CheckState = CheckState.Indeterminate;.Click += new EventHandler(toolStripFormDocument_Click);.Items.Add(item);

}

}toolStripFormDocument_Click(object sender, EventArgs e)

{OpenForm = false;(Form Child in this.MdiChildren)

{(Child is FormDocument)

{= true;

}

}(OpenForm)

{index = 0;(int x = 0; x < this.MdiChildren.Length; x++)

{(MdiChildren[x].Name == "FormDocument")

{= x;

}

}(this.ActiveMdiChild == this.MdiChildren[index])

{.MdiChildren[index].WindowState = FormWindowState.Minimized;

}

{(MdiChildren[index].Visible == true)

{.MdiChildren[index].Activate();

}

{.MdiChildren[index].WindowState = FormWindowState.Normal;.MdiChildren[index].Visible = true;

}

}

}

}void FormDocument_RemoveToolStrip()

{FDoc = new FormDocument();(int x = 0; x < toolStrip1.Items.Count; x++)

{(toolStrip1.Items[x].Name == "toolStrip" + FDoc.Name)

{.Items.RemoveAt(x);

}

}

}void ВыходToolStripMenuItem_Click(object sender, EventArgs e)

{();

}void оПрограммеToolStripMenuItem_Click(object sender, EventArgs e)

{FormAbout = new FormAbout();.ShowDialog();

}void реестрПутёвокВодителейToolStripMenuItem_Click(object sender, EventArgs e)

{FormWaySheetDrivers = new FormWaySheetDrivers();.Show();

}void работаКондукторовToolStripMenuItem_Click(object sender, EventArgs e)

{FormWorkConductor = new FormWorkConductor();.Show();

}void листдоходаКондукторовToolStripMenuItem_Click(object sender, EventArgs e)

{FormRevenueConductors = new FormRevenueConductors();.Show();

}void сводныйЖурналПоМаркамToolStripMenuItem_Click(object sender, EventArgs e)

{FormMagazineBus = new FormMagazineBus();.Show();

}

}

}