public void Click()
 {
     _stopWatch.SetState(new RunningState(_stopWatch));
     Console.WriteLine("Running");
 }
Beispiel #2
0
 public void Click()
 {
     _stopWatch.SetState(new StopState(_stopWatch));
     Console.WriteLine("Stopped");
 }