Beispiel #1
0
        void ClickEntreesButton(object sender, RoutedEventArgs e)
        {
            SelectEntrees  selectEntrees = new SelectEntrees();
            OrderComponent order         = this.FindAncestor <OrderComponent>();

            order.Swap(selectEntrees);
        }
Beispiel #2
0
        void ChangeEntreeClick(object sender, RoutedEventArgs e)
        {
            SelectEntrees  custom = new SelectEntrees(combo, true);
            OrderComponent order  = this.FindAncestor <OrderComponent>();

            order.Swap(custom);
        }
Beispiel #3
0
 void ClickDone(object sender, RoutedEventArgs e)
 {
     if (IsCombo)
     {
         CustomizeComboMeal custom         = new CustomizeComboMeal(c);
         OrderComponent     orderComponent = this.FindAncestor <OrderComponent>();
         orderComponent.Swap(custom);
     }
     else
     {
         SelectEntrees  custom         = new SelectEntrees();
         OrderComponent orderComponent = this.FindAncestor <OrderComponent>();
         orderComponent.Swap(custom);
     }
 }