Теми рефератів
> Реферати > Курсові роботи > Звіти з практики > Курсові проекти > Питання та відповіді > Ессе > Доклади > Учбові матеріали > Контрольні роботи > Методички > Лекції > Твори > Підручники > Статті Контакти
Реферати, твори, дипломи, практика » Курсовые проекты » Автоматизація обліку роботи автотранспортного підприємства

Реферат Автоматизація обліку роботи автотранспортного підприємства





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)


Назад | сторінка 15 з 19 | Наступна сторінка





Схожі реферати:

  • Реферат на тему: Phonetic peculiarities of the popular science text
  • Реферат на тему: Grammar of the Text: its Basic Units and Main Features (based on the novel ...
  • Реферат на тему: Технології аналізу даних (Text Mining, Data Mining)
  • Реферат на тему: The impact of unhealthy lifestyles on a child's behavior in school
  • Реферат на тему: The positive image as are important component of being competitive on the t ...