public void StartPlay() { var brainerGameCreated = createGame.Invoke(); mainComponent.DisplayMaxScore(scoreService.FindMaxScore()); mainComponent.CreateResult(brainerGameCreated.Game.GetCurrentNumber(), brainerGameCreated.Results); }
void FireCreateEvent(object sender, LessThanOk.UI.Events.ButtonEventArgs e) { if (CreateGame != null) { CreateGame.Invoke(this, EventArgs.Empty); } }
private void HandleGameState(Line line) { if (line.Text.Contains("CREATE_GAME")) { CreateGame?.Invoke(); } }