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