stify">}
{. MdiChildren [index] .WindowState=FormWindowState.Normal; .MdiChildren [index] .Visible=true;
}
}
}
} void FormWaySheets_RemoveToolStrip ()
{FWS=new FormWaySheets (); (int x=0; x lt; 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 lt; 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 lt; 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 ();
}
}
}