예제 #1
0
 public void ExecuteOnButton()
 {
     Console.WriteLine("You pressed On button.");
     //Delegating the state behavior
     currentState.PressOnButton(this);
 }
예제 #2
0
 public void PressOnButton()
 {
     currentState.PressOnButton(this);
 }
 public void PressOnButton()
 {
     currentState.PressOnButton(this);//Delegating the state
 }