public void StartPlay(int number) { Console.WriteLine("Новая композиция!"); PlayIsStartedEvent?.Invoke(this, new PlayIsStartedEventArgs() { SoundNumber = number }); }
void OnPlayIsStarted(PlayIsStartedEvent e, GameState state) { topLabelLeft.Text = "Table " + state.TableId.ToString(); topLabelRight.Text = "Play " + state.PlayIndex.ToString(); // if (state.TableId != tableId) { NewTable(state); } NewPlay(state); }
private void OnPlayIsStarted(PlayIsStartedEvent e) { Reset(); if (TableId == e.TableId) { PlayIndex++; } else { PlayIndex = 0; } TableId = e.TableId; PlayersAtTable.AddRange(e.Players); PlayersInCurrentPlay.AddRange(e.Players); BigBlind = e.BigBlindAmount; SmallBlind = e.SmallBlindAmount; logger.Info("Play started, table {0}, play {1}", TableId, PlayIndex); }
public void StartPlay(int n) { PlayIsStartedEvent?.Invoke(this, new PlayIsStartedEventArgs(n)); }
public void StartPlay(int x) { PlayIsStartedEvent?.Invoke(this, new PlayIsStartedEventArgs { SoundNumber = x }); }
protected override void OnPlayIsStarted(PlayIsStartedEvent e, GameState state) { Reset(); }
protected virtual void OnPlayIsStarted(PlayIsStartedEvent e, GameState state) { }
public void StartPlay(int number) { PlayIsStartedEventArgs args = new PlayIsStartedEventArgs(number); PlayIsStartedEvent?.Invoke(this, args); }
public void StartPlay(int song) => PlayIsStartedEvent?.Invoke(this, new PlayIsStartedEventArgs { Song = song });