p>
} void FormDrivers_AddToolStrip ()
{item=new ToolStripButton (); FormDrivers=new FormDrivers (); (toolStrip1.Items.Count!=0)
{haveButton=true; (ToolStripButton oldButton in this.toolStrip1.Items)
{(oldButton.Name == toolStrip + FormDrivers.Name)
{= false ;;
}
} (haveButton)
{. Name= toolStrip + FormDrivers.Name; .Text=FormDrivers.Text; .Image=FormDrivers.Icon.ToBitmap () ;. DisplayStyle=ToolStripItemDisplayStyle.ImageAndText; .CheckState=CheckState.Indeterminate; .Click +=new EventHandler (toolStripFormDrives_Click) ;. Items. Add (item);
}
}
{. Name= toolStrip + FormDrivers.Name; .Text=FormDrivers.Text; .Image=FormDrivers.Icon.ToBitmap () ;. DisplayStyle=ToolStripItemDisplayStyle.ImageAndText; .CheckState=CheckState.Indeterminate; .Click +=new EventHandler (toolStripFormDrives_Click) ;. Items. Add (item);
}
} toolStripFormDrives_Click (object sender, EventArgs e)
{OpenForm=false; (Form Child in this.MdiChildren)
{(Child is FormDrivers)
{= true;
}
} (OpenForm)
{index=0; (int x=0; x lt; this.MdiChildren.Length; x ++)
{(MdiChildren [x] .Name == FormDrivers )
{= 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 FormDrivers_RemoveToolStrip ()
{FormDrives=new FormDrivers (); (int x=0; x lt; toolStrip1.Items.Count; x ++)
{(toolStrip1.Items [x] .Name == toolStrip + FormDrives.Name)
{. Items.RemoveAt (x);
}
}
} void FormBuses_AddToolStrip ()
{item=new ToolStripButton (); FormBuses=new FormBuses (); (toolStrip1.Items.Count!=0)
{haveButton=true; (ToolStripButton oldButton in this.toolStrip1.Items)
{(oldButton.Name == toolStrip + FormBuses.Name)
{= false ;;
}
} (haveButton)
{. Name= toolStrip + FormBuses.Name; .Text=FormBuses.Text; .Image=FormBuses.Icon.ToBitmap () ;. DisplayStyle=ToolStripItemDisplayStyle.ImageAndText; .CheckState=CheckState.Indeterminate; .Click +=new EventHandler (toolStripFormBuses_Click) ;. Items. Add (item);
}
}
{. Name= toolStrip + FormBuses.Name; .Text=FormBuses.Text; .Image=FormBuses.Icon.ToBitmap () ;. DisplayStyle=ToolStripItemDisplayStyle.ImageAndText; .CheckState=CheckState.Indeterminate; .Click +=new EventHandler (toolStripFormBuses_Click) ;. Items. Add (item);
}
} toolStripFormBuses_Click (object sender, EventArgs e)
{OpenForm=false; (Form Child in this.MdiChildren)
{(Child is FormBuses)
{= true;
}
} (OpenForm)
{index=0; (int x=0; x lt; this.MdiChildren.Length; x ++)
{(MdiChildren [x] .Name == FormBuses )
{= 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 FormBuses_RemoveToolStrip ()
{FormBuses=new FormBuses (); (int x=0; x lt; toolStrip1.Items.Count; x ++)
{(toolStrip1.Items [x] .Name == toolStrip + FormBuses.Name)