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