示例#1
0
 protected void OnGameEnded(IGSGameEventArgs args)
 {
     if (GameEnded != null)
     {
         GameEnded(this, args);
     }
 }
示例#2
0
 private void GameEnded(object sender, IGSGameEventArgs args)
 {
     if (IGSGame == args.Game)
     {
         Container.BaseForm.Invoke(new EventHandler(StopTimer));
         gameEnded = true;
     }
 }
示例#3
0
 private void GameChanged(object sender, IGSGameEventArgs args)
 {
     if (IGSGame == args.Game)
     {
         Container.BaseForm.Invoke(new EventHandler(UpdateView));
         EventHandler enableButtons = delegate
         {
             EnableButtons();
         };
         Container.BaseForm.Invoke(enableButtons);
     }
 }