public void theSnake_RunChange(object sender, SnakeRunningEventArgs e)
 {
     toolStripStatusLabelRunning.Text = e.Status ;
 }
示例#2
0
 public void StartOrStopSnakeTimer()
 {
     if (this.SnakeTimer.Enabled)
     {
         this.SnakeTimer.Stop();
         SnakeRunningEventArgs e = new SnakeRunningEventArgs("Stopped");
         this.RunChange(this, e);
     }
     else
     {
         this.SnakeTimer.Start();
         SnakeRunningEventArgs e = new SnakeRunningEventArgs("Running");
         this.RunChange(this, e);
     }
 }