public menuItem_template(MainWindow mWindow, mainMenu mainMenu, string name, string description, double price, string ingredients, string category, string allergy, string filter, string itemImage) { InitializeComponent(); mMenu = mainMenu; mWind = mWindow; DishDescriptionMethod = description; DishNameMethod = name; DishPriceMethod = price; ingred = ingredients; item_image_temp = "Image/ItemImage/"; item_image_temp += itemImage; ImageSource = item_image_temp; this.allergy = allergy; }
public menuInfo_template(MainWindow mWindow, mainMenu mainMenu, string name, double dPrice, string description, string ingredients, string allergy, string itemImage) { InitializeComponent(); DishNameMethod = name; dishPrice = dPrice; infoScreen_price.Content = dPrice.ToString("C2"); DishDescriptionMethod = description; DishAllergyMethod = allergy; mMenu = mainMenu; main_window = mWindow; ingred = ingredients.Split(','); ImageSource = itemImage; for (int i = 0; i < ingred.Length; i++) { list_of_ingredients.Items.Add(new add_checkboxs() { button_name = ingred[i], is_checked = defaultIngredient[i] }); } }
public MainWindow() { InitializeComponent(); uc_mainmenu = new mainMenu(this); }
public helpOverlayUC(mainMenu mainMenu) { InitializeComponent(); mMenu = mainMenu; }
public OrderConfirmUC(mainMenu mainMenu) { InitializeComponent(); mMenu = mainMenu; }
public CallServerConfirmUC(mainMenu mainMenu) { InitializeComponent(); mMenu = mainMenu; }