/// <summary> /// Goes back to the other flavor options /// </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 switchToFlavorChoices(object sender, RoutedEventArgs e) { var flavor = new FlavorSailorSoda(); var orderControl = this.FindAncestor <OrderControl>(); orderControl.SwitchMenuOrderScreen(flavor); }
// <summary> /// Displays the dirrent flavors for SailorSoda /// </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 switchToSizesforFlavorsForSailorSodak(object sender, RoutedEventArgs e) { var flavor = new FlavorSailorSoda(); flavor.DataContext = new SailorSoda(); var orderControl = this.FindAncestor <OrderControl>(); orderControl.SwitchMenuOrderScreen(flavor); }