public void Hungry()
 {
     Console.WriteLine("明明:加生,你在哪里,我饿了。");
     System.Threading.Thread.Sleep(3000);
     EatEvetArg e = new EatEvetArg("教工食堂", 100);
     if (onEatEvent != null)
         onEatEvent(this, e);
 }
        public void Servant(object sender, EatEvetArg e)
        {
            Console.WriteLine("加生:明明想去哪里吃?我马上去安排。");
            System.Threading.Thread.Sleep(4000);
            e.TellServer();
            System.Threading.Thread.Sleep(4000);
            Console.WriteLine("加生:明明您想去{0}吃饭,花¥{1},我这就去安排。请明明稍等。。。。。。。", e.Address, e.Money);
            System.Threading.Thread.Sleep(4000);
            Console.WriteLine("加生:明明,已经安排好,请明明前去。");
			e.ACK();
        }
Esempio n. 3
0
 public void Servant(object sender, EatEvetArg e)
 {
     Console.WriteLine("加生:明明想去哪里吃?我马上去安排。");
     System.Threading.Thread.Sleep(4000);
     e.TellServer();
     System.Threading.Thread.Sleep(4000);
     Console.WriteLine("加生:明明您想去{0}吃饭,花¥{1},我这就去安排。请明明稍等。。。。。。。", e.Address, e.Money);
     System.Threading.Thread.Sleep(4000);
     Console.WriteLine("加生:明明,已经安排好,请明明前去。");
     e.ACK();
 }
Esempio n. 4
0
        public void Hungry()
        {
            Console.WriteLine("明明:加生,你在哪里,我饿了。");
            System.Threading.Thread.Sleep(3000);
            EatEvetArg e = new EatEvetArg("教工食堂", 100);

            if (onEatEvent != null)
            {
                onEatEvent(this, e);
            }
        }