public void openInfoScreen(MainWindow mWindow, string name, double price, string description, string ingredients, string allergy, string item_image_temp2) { Console.WriteLine(item_image_temp2); menuInfo_template item_info_screen = new menuInfo_template(mWindow, this, name, price, description, ingredients, allergy, item_image_temp2); mWin.stack_infoScreen.Children.Clear(); mWin.stack_confirmationControl.Children.Clear(); mWin.stack_callServerConfirm.Children.Clear(); mWin.stack_helpOverlay.Children.Clear(); if (mWin.stack_infoScreen.Children.Capacity > 0) { mWin.stack_infoScreen.Children.Capacity--; } mWin.stack_infoScreen.Children.Add(item_info_screen); }
public void removeItemInfoFromStack(menuInfo_template item_info) { stack_mainMenu.Children.Remove(item_info); }
public void addItemInfoToStack(menuInfo_template item_info) { stack_mainMenu.Children.Add(item_info); }