예제 #1
0
 public virtual void stopWorking()
 {
     Console.WriteLine(this.GetType() + "_" + this.GetHashCode() + ": " + System.Reflection.MethodBase.GetCurrentMethod().Name + "()");
     currentMode = null;
 }
예제 #2
0
 public virtual void startWorking(Service service)
 {
     Console.WriteLine(this.GetType() + "_" + this.GetHashCode() + ": " + System.Reflection.MethodBase.GetCurrentMethod().Name + "()");
     currentMode = (DryerMode)modes[service];
     currentMode.turnOn();
 }