/// <summary> /// Goes back to the other sizes for WarriorWater /// </summary> /// <param name="sender">the object we trying to implement the function</param> /// <param name="e">the code that runs the function upon press</param> void switchToSizes(object sender, RoutedEventArgs e) { var sizes = new SizesMarkarthMilk(); var orderControl = this.FindAncestor <OrderControl>(); orderControl.SwitchMenuOrderScreen(sizes); }
// <summary> /// Displays the sizes for MarkarthMilk /// </summary> /// <param name="sender">the object we trying to implement the function</param> /// <param name="e">the code that runs the function upon press</param> void switchToSizesforSizesForMarkarthMilk(object sender, RoutedEventArgs e) { var size = new SizesMarkarthMilk(); size.DataContext = new MarkarthMilk(); var orderControl = this.FindAncestor <OrderControl>(); orderControl.SwitchMenuOrderScreen(size); }