//Main app buttons private void Edit_Database_Button_Click(object sender, RoutedEventArgs e) { if (DatabaseSelectorBox.Text == "") { System.Windows.MessageBox.Show("Please select a database", "Select database"); } if (DatabaseSelectorBox.Text == "Meal Selector") { MealSelectorDatabaseViewer databaseWindow = new MealSelectorDatabaseViewer(); databaseWindow.Show(); } if (DatabaseSelectorBox.Text == "Meal Planner - Home Cooked") { MealPlannerDatabaseViewer databaseWindow = new MealPlannerDatabaseViewer(); databaseWindow.Show(); } }
private void View_Database_Click(object sender, RoutedEventArgs e) { MealSelectorDatabaseViewer datbaseWindow = new MealSelectorDatabaseViewer(); datbaseWindow.Show(); }