Example #1
0
        private void addDishButton_Click(object sender, EventArgs e)
        {
            DishForm form = new DishForm();

            form.ShowDialog();
            currentDishesList = null;
            RefreshListBoxWithDishes();
        }
Example #2
0
 private void editDishButton_Click(object sender, EventArgs e)
 {
     if (ListBox.SelectedIndex != -1)
     {
         DishForm form = new DishForm(GetSelectedDish());
         form.ShowDialog();
         currentDishesList = null;
         RefreshListBoxWithDishes();
     }
 }