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

            orderControl.SwitchMenuOrderScreen(choices);
        }
Exemple #2
0
        /// <summary>
        /// Goes back to the other entree 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 switchToEntreeChoices(object sender, RoutedEventArgs e)
        {
            var choices      = new EntreeChoices();
            var orderControl = this.FindAncestor <OrderControl>();

            orderControl.SwitchMenuOrderScreen(choices);
            ob.Add((BriarheartBurger)DataContext);
        }