private void PlayerRated(SinglePlayerRating rating, EventArgs e) { if (progressBarWorking.Value < progressBarWorking.Maximum) { progressBarWorking.Value += 1; } Refresh(); }
public static void Initialize() { _subject = new SinglePlayerRating(); _player = new Player { BbWon = 2.25, BbFoldToSteal = 25, Hands = 30000, Vpip = 20, VpipPfrRatio = 2, Pfr = 10, AutolabelDatabase = string.Empty, }; _ratingA = new Rating { Index = 0, Bb100 = "2,00", Bb100To = "2,25", PokerSiteEnum = PokerSiteEnum.Pokerstars }; _ratingB = new Rating { Index = 1, Bb100 = "2,25", Bb100To = "2,26", PokerSiteEnum = PokerSiteEnum.Pokerstars }; _label0 = new Label { Index = 0 }; _label1 = new Label { Index = 1 }; _database = new Database { Name = "Testdatabase" }; //_subject.Parameters(new List<Rating> {_ratingA, _ratingB}, new List<Label> {_label0, _label1}, _database, PokerSiteEnum.Pokerstars); IoC.Build(); }
///<summary> ///</summary> ///<param name="ratings"></param> public void Subscribe(SinglePlayerRating ratings) { ratings.RatePlayer += PlayerRated; }