}
} void FormRevenue_RemoveToolStrip ()
{FR=new FormRevenue (); (int x=0; x lt; 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 lt; 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 lt; 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 lt; 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 ();