public void HoldBun(object sender, RoutedEventArgs e)
 {
     if (DataContext is Order order)
     {
         if (CollectionViewSource.GetDefaultView(order.Items).CurrentItem is DinoDiner.Menu.CretaceousCombo Combo)
         {
             DinoDiner.Menu.Brontowurst b = (DinoDiner.Menu.Brontowurst)Combo.Entree;
             b.HoldBun();
             Combo.Entree = b;
             CollectionViewSource.GetDefaultView(order.Items).Refresh();
         }
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// This method returns a list of all menu items
        /// </summary>
        /// <returns>This string is a list of all the menu items</returns>
        public override String ToString()
        {
            StringBuilder sb = new StringBuilder();
            JurassicJava  j  = new JurassicJava();

            sb.Append(j.ToString() + "\n");
            Sodasaurus s = new Sodasaurus();

            sb.Append(s.ToString() + "\n");
            Tyrannotea t = new Tyrannotea();

            sb.Append(t.ToString() + "\n");
            Water w = new Water();

            sb.Append(w.ToString() + "\n");
            Brontowurst b = new Brontowurst();

            sb.Append(b.ToString() + "\n");
            DinoNuggets d = new DinoNuggets();

            sb.Append(d.ToString() + "\n");
            PrehistoricPBJ p = new PrehistoricPBJ();

            sb.Append(p.ToString() + "\n");
            PterodactylWings pt = new PterodactylWings();

            sb.Append(pt.ToString() + "\n");
            SteakosaurusBurger st = new SteakosaurusBurger();

            sb.Append(st.ToString() + "\n");
            TRexKingBurger tk = new TRexKingBurger();

            sb.Append(tk.ToString() + "\n");
            VelociWrap v = new VelociWrap();

            sb.Append(v.ToString() + "\n");
            Fryceritops f = new Fryceritops();

            sb.Append(f.ToString() + "\n");
            MeteorMacAndCheese m = new MeteorMacAndCheese();

            sb.Append(m.ToString() + "\n");
            MezzorellaSticks mz = new MezzorellaSticks();

            sb.Append(mz.ToString() + "\n");
            Triceritots tr = new Triceritots();

            sb.Append(tr.ToString() + "\n");
            CretaceousCombo cc1 = new CretaceousCombo(new Brontowurst());

            sb.Append(cc1.ToString() + "\n");
            CretaceousCombo cc2 = new CretaceousCombo(new DinoNuggets());

            sb.Append(cc2.ToString() + "\n");
            CretaceousCombo cc3 = new CretaceousCombo(new PrehistoricPBJ());

            sb.Append(cc3.ToString() + "\n");
            CretaceousCombo cc4 = new CretaceousCombo(new PterodactylWings());

            sb.Append(cc4.ToString() + "\n");
            CretaceousCombo cc5 = new CretaceousCombo(new SteakosaurusBurger());

            sb.Append(cc5.ToString() + "\n");
            CretaceousCombo cc6 = new CretaceousCombo(new TRexKingBurger());

            sb.Append(cc6.ToString() + "\n");
            CretaceousCombo cc7 = new CretaceousCombo(new VelociWrap());

            sb.Append(cc7.ToString() + "\n");
            return(sb.ToString());
        }
Ejemplo n.º 3
0
 public BrontowurstCustomizer(Brontowurst b)
 {
     this.bronto = b;
     InitializeComponent();
 }