private void pb_back_Click(object sender, EventArgs e)
 {
     am             = new AlgorithmMenu();
     am.FormClosed += Am_FormClosed;
     am.Show();
     this.Close();
 }
 private void Am_FormClosed(object sender, FormClosedEventArgs e)
 {
     am = null;
 }
Пример #3
0
 // This Method will use a jump tree allows the user to select from optioned provided in the text file.
 private void jumpTree(int userChoice)
 {
     RecipeMenu Recipe = new RecipeMenu();                                 // Allows us to move to the RecipeMenu class
     AlgorithmMenu Algorithm = new AlgorithmMenu();                        // Allows us to move to the AlgorithmMenu class
     ExitScreen Exit = new ExitScreen();                                   // Allows us to move to the Exit class
     switch (userChoice)
     {
         case 1:
             Recipe.displayScreen();
             break;
         case 2:
             Algorithm.displayScreen();
             break;
         case 3:
             Exit.exitScreen();
             break;
         default:
             Console.WriteLine("Something went wrong in the jumpTree");
             break;
     }
 }