private void AddNewIngredient_Click_1(object sender, RoutedEventArgs e) { AddNewIngredientWindow aniw = new AddNewIngredientWindow(); aniw.Owner = this; aniw.ShowDialog(); }
private void AddNewIngredient_Click(object sender, RoutedEventArgs e) { AddNewIngredientWindow addNewIng = new AddNewIngredientWindow(); addNewIng.Owner = this; addNewIng.ShowDialog(); updListBox(); }