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