Пример #1
0
        private void MenuStrip_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            HandleMenu HandleSelected = new HandleMenu();

            HandleSelected.SelectedMenu = e.ClickedItem.Text;
            HandleSelected.MainPage     = this;
            HandleSelected.LoadPage();
        }
Пример #2
0
 private void LoadFirstMenuItem()
 {
     if (MenuStrip.Items.Count > 0)
     {
         HandleMenu MenuHandler = new HandleMenu();
         MenuHandler.MainPage     = this;
         MenuHandler.SelectedMenu = MenuStrip.Items[0].Text;
         MenuHandler.LoadPage();
     }
 }