/* Initializes all of the supported poker clients * If you add a new client in the future, remember to add it * to this list */ private void InitializeSupportedPokerClientList() { PokerClientsList.Add(new AdvancedPokerTrainer()); PokerClientsList.Add(new PokerStars()); PokerClientsList.Add(new PartyPoker()); //PokerClientsList.Add(new GDPoker()); //PokerClientsList.Add(new SealsWithClubs()); PokerClientsList.SetDefault(new PokerStars()); }
/* Pokerclient has changed, store in config and load available languages */ private void cmbPokerClient_SelectionChangeCommitted(object sender, EventArgs e) { PokerClient client = PokerClientsList.Find(cmbPokerClient.Text); client.InitializeLanguage(client.DefaultLanguage); LoadPokerClientLanguages(client); LoadPokerClientThemes(client); userSettings.CurrentPokerClient = client; }
/* Pokerclient has changed, store in config and load available languages */ private void cmbPokerClient_SelectionChangeCommitted(object sender, EventArgs e) { PokerClient client = PokerClientsList.Find(cmbPokerClient.Text); client.InitializeLanguage(client.DefaultLanguage); LoadPokerClientLanguages(client); LoadPokerClientThemes(client); client.SetTheme(cmbPokerClientTheme.Text); Globals.Director.ChangePokerClient(client); // Refresh hand history directory txtHandHistoryDirectory.Text = Globals.UserSettings.StoredHandHistoryDirectory; }