Ejemplo n.º 1
0
 private void Addmenu1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (Addmenu1.SelectedItem.ToString() == "Add Workout")
     {
         Add_Workout AWF1 = new Add_Workout();
         AWF1.Show();
     }
     if (Addmenu1.SelectedItem.ToString() == "Add Program")
     {
         Add_Program APF1 = new Add_Program();
         APF1.Show();
     }
     if (Addmenu1.SelectedItem.ToString() == "Add Recipe")
     {
         Add_Recipe RF = new Add_Recipe();
         RF.Show();
     }
     if (Addmenu1.SelectedItem.ToString() == "Add Supplement")
     {
         Supplement SF = new Supplement();
         SF.Show();
     }
     if (Addmenu1.SelectedItem.ToString() == "Add Diet Guide")
     {
         Add_Guide DGF = new Add_Guide();
         DGF.Show();
     }
     if (Addmenu1.SelectedItem.ToString() == "Add Cheat Guide")
     {
         Add_Cheat_Guide CGF = new Add_Cheat_Guide();
         CGF.Show();
     }
 }
Ejemplo n.º 2
0
 private void Addmenu2_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (Addmenu2.SelectedItem.ToString() == "Add Recipe")
     {
         Add_Recipe RF = new Add_Recipe();
         RF.Show();
     }
     if (Addmenu2.SelectedItem.ToString() == "Add Supplement")
     {
         Supplement SF = new Supplement();
         SF.Show();
     }
     if (Addmenu2.SelectedItem.ToString() == "Add Diet Guide")
     {
         Add_Guide DGF = new Add_Guide();
         DGF.Show();
     }
     if (Addmenu2.SelectedItem.ToString() == "Add Cheat Guide")
     {
         Add_Cheat_Guide CGF = new Add_Cheat_Guide();
         CGF.Show();
     }
 }