示例#1
0
        /// <summary>
        /// Goes back to the other side 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 switchToDrinkChoices(object sender, RoutedEventArgs e)
        {
            var choices      = new DrinkChoices();
            var orderControl = this.FindAncestor <OrderControl>();

            orderControl.SwitchMenuOrderScreen(choices);
        }
示例#2
0
        /// <summary>
        /// Switches screens for all the drink choices
        /// </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>
        public void SwitchtoMenuOptionToDrink(object sender, RoutedEventArgs e)
        {
            var drink        = new DrinkChoices();
            var orderControl = this.FindAncestor <OrderControl>();

            orderControl.SwitchMenuOrderScreen(drink);
        }