Exemple #1
0
 public void Toggle(ModeSwitch modeSwitch)
 {
     Console.WriteLine("FROM DARK TO LIGTH");
     modeSwitch.SetState(new ModeStateLight());
 }
Exemple #2
0
 public void Toggle(ModeSwitch modeSwitch)
 {
     Console.WriteLine("FROM LIGHT TO DARK");
     modeSwitch.SetState(new ModeStateDark());
 }