Example #1
0
 internal override void Washing(WashingMachine wm)
 {
     Console.WriteLine("洗衣结束");
 }
Example #2
0
 internal override void Washing(WashingMachine wm)
 {
     Console.WriteLine("开始洗衣");
     wm.wmState = new InflowWaterState() ;
     wm.WashingMachineExecute();
 }
 internal override void Washing(WashingMachine wm)
 {
     Console.WriteLine("正在放出水...");
     wm.wmState = new Spin_dryState();
     wm.WashingMachineExecute();
 }
Example #4
0
 internal override void Washing(WashingMachine wm)
 {
     Console.WriteLine("正在洗衣...");
     wm.wmState =new DischargeWaterState();
     wm.WashingMachineExecute();
 }
Example #5
0
 public void Execute()
 {
     WashingMachine wm = new WashingMachine();
     wm.WashingMachineExecute();
 }
Example #6
0
 internal override void Washing(WashingMachine wm)
 {
     Console.WriteLine("正在甩干...");
     wm.wmState = new TurnOffState();
     wm.WashingMachineExecute();
 }