private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (dishes.SelectedItem == null) { MessageBox.Show("Выберете блюдо."); }
     else
     {
         UpdatingDish ud = new UpdatingDish((dishes.SelectedItem).ToString());
         ud.Show();
         this.Close();
     }
 }
예제 #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (dishes.SelectedItem == null)
     {
         MessageBox.Show("Выберете блюдо.");
     }
     else
     {
         UpdatingDish ud = new UpdatingDish((dishes.SelectedItem).ToString());
         ud.Show();
         this.Close();
     }
 }