Esempio n. 1
0
 /// <summary>
 /// Displaying content
 /// </summary>
 public void Display()
 {
     while (true)
     {
         var sodaMachine = new SodaMachine();
         var subMenu     = new SubMenu(sodaMachine);
         subMenu.Display();
         Console.ReadLine();
         Console.Clear();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="sodaMachine"></param>
 public SubMenu(SodaMachine sodaMachine)
 {
     this._sodaMachine = sodaMachine;
 }