Beispiel #1
0
        static void Main(string[] args)
        {
            Customer wang  = new Customer();
            Service  ser   = new Service();
            Service  zhang = new Service();
            Kitchen  kit   = new Kitchen();
            Menu     menu  = new Menu();

            menu.name     = wang;
            menu.id       = 200;
            menu.mealList = "宫保鸡丁";
            wang.Order(ser, menu);
            ser.SendMenu(kit);
            kit.Cook();
            kit.SendAlerrt(ser);
            ser.TransCook();
            Console.ReadLine();
        }
Beispiel #2
0
 public void SendMenu(Kitchen kit)
 {
     Console.WriteLine("服务员将菜{0}传给厨师", menu.mealList);
     kit.GetMenu(menu);
 }