/// <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 SidesChoices();
            var orderControl = this.FindAncestor <OrderControl>();

            orderControl.SwitchMenuOrderScreen(choices);
        }
Esempio n. 2
0
        /// <summary>
        /// Switches screens for all the side 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 SwitchtoMenuOptionToSide(object sender, RoutedEventArgs e)
        {
            var side         = new SidesChoices();
            var orderControl = this.FindAncestor <OrderControl>();

            orderControl.SwitchMenuOrderScreen(side);
        }