コード例 #1
0
 /// <summary>
 /// Executes the add ingredient command
 /// </summary>
 private void AddItemExecute()
 {
     try
     {
         AddIngredient addIngredient = new AddIngredient();
         addIngredient.ShowDialog();
         IngredientList = ingrediantsData.GetAllIngredients();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
コード例 #2
0
        private void AddIngredientClick(object sender, RoutedEventArgs e)
        {
            AddIngredient popup = new AddIngredient(PM);

            popup.ShowDialog();
        }