protected void OnGameEnded(IGSGameEventArgs args) { if (GameEnded != null) { GameEnded(this, args); } }
private void GameEnded(object sender, IGSGameEventArgs args) { if (IGSGame == args.Game) { Container.BaseForm.Invoke(new EventHandler(StopTimer)); gameEnded = true; } }
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); } }