private void Add_Button_Click(object sender, RoutedEventArgs e) { //mMenu.addItemToOrderMenu(int.Parse(quantity_text.Text), dishName, dishPrice); bool[] currentIngredients = new bool[defaultIngredient.Length]; for (int i = 0; i < defaultIngredient.Length; i++) { currentIngredients[i] = ((add_checkboxs)list_of_ingredients.Items.GetItemAt(i)).is_checked; } mMenu.addItemToOrderMenu(int.Parse(quantity_text.Text), dishName, dishPrice, defaultIngredient, currentIngredients, ingred); quantity_text.Text = "1"; item_info_back_Button_Click(null, null); }
private void Add_Button_Click(object sender, RoutedEventArgs e) { mMenu.addItemToOrderMenu(1, this.DishName.Text, DishPriceMethod); }