lign="justify"> {. Items.RemoveAt (x);
}
}
} void FormConductors_AddToolStrip ()
{item=new ToolStripButton (); FormConductors=new FormConductors (); (toolStrip1.Items.Count!=0)
{haveButton=true; (ToolStripButton oldButton in this.toolStrip1.Items)
{(oldButton.Name == toolStrip + FormConductors.Name)
{= false ;;
}
} (haveButton)
{. Name= toolStrip + FormConductors.Name; .Text=FormConductors.Text; .Image=FormConductors.Icon.ToBitmap () ;. DisplayStyle=ToolStripItemDisplayStyle.ImageAndText; .CheckState=CheckState.Indeterminate; .Click +=new EventHandler (toolStripFormConductors_Click) ;. Items. Add (item);
}
}
{. Name= toolStrip + FormConductors.Name; .Text=FormConductors.Text; .Image=FormConductors.Icon.ToBitmap () ;. DisplayStyle=ToolStripItemDisplayStyle.ImageAndText; .CheckState=CheckState.Indeterminate; .Click +=new EventHandler (toolStripFormConductors_Click) ;. Items. Add (item);
}
} toolStripFormConductors_Click (object sender, EventArgs e)
{OpenForm=false; (Form Child in this.MdiChildren)
{(Child is FormConductors)
{= true;
}
} (OpenForm)
{index=0; (int x=0; x lt; this.MdiChildren.Length; x ++)
{(MdiChildren [x] .Name == FormConductors )
{= 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 FormConductors_RemoveToolStrip ()
{FormConductors=new FormConductors (); (int x=0; x lt; toolStrip1.Items.Count; x ++)
{(toolStrip1.Items [x] .Name == toolStrip + FormConductors.Name)
{. Items.RemoveAt (x);
}
}
} void FormRoutes_AddToolStrip ()
{item=new ToolStripButton (); FormRoutes=new FormRoutes (); (toolStrip1.Items.Count!=0)
{haveButton=true; (ToolStripButton oldButton in this.toolStrip1.Items)
{(oldButton.Name == toolStrip + FormRoutes.Name)
{= false ;;
}
} (haveButton)
{. Name= toolStrip + FormRoutes.Name; .Text=FormRoutes.Text; .Image=FormRoutes.Icon.ToBitmap () ;. DisplayStyle=ToolStripItemDisplayStyle.ImageAndText; .CheckState=CheckState.Indeterminate; .Click +=new EventHandler (toolStripFormRoutes_Click) ;. Items. Add (item);
}
}
{. Name= toolStrip + FormRoutes.Name; .Text=FormRoutes.Text; .Image=FormRoutes.Icon.ToBitmap () ;. DisplayStyle=ToolStripItemDisplayStyle.ImageAndText; .CheckState=CheckState.Indeterminate; .Click +=new EventHandler (toolStripFormRoutes_Click) ;. Items. Add (item);
}
} toolStripFormRoutes_Click (object sender, EventArgs e)
{OpenForm=false; (Form Child in this.MdiChildren)
{(Child is FormRoutes)
{= true;
}
} (OpenForm)
{index=0; (int x=0; x lt; this.MdiChildren.Length; x ++)
{(MdiChildren [x] .Name == FormRoutes )
{= 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 FormRoutes_RemoveToolStrip ()
{...