Example #1
0
 /// <summary>
 /// Constructor that will clear and initialize the GUI.
 /// </summary>
 public MainWindow()
 {
     InitializeComponent();
     animalManager  = new AnimalManager();
     recepieManager = new RecepieManager();
     InitializeGUI();
 }
Example #2
0
 private void CreateNewAnimalMotel()
 {
     if (hasBeenSaved)
     {
         animalManager  = new AnimalManager();
         recepieManager = new RecepieManager();
         InitializeGUI();
     }
     else
     {
         MessageBox.Show("You need to save your work first");
     }
 }