コード例 #1
0
 public void ExecuteOffButton()
 {
     Console.WriteLine("You pressed Off button.");
     //Delegating the state behavior
     currentState.PressOffButton(this);
 }
コード例 #2
0
 public void PressOffButton()
 {
     currentState.PressOffButton(this);
 }
コード例 #3
0
 public void PressOffButton()
 {
     currentState.PressOffButton(this);//Delegating the state
 }