private void LoadPokerClientThemes(PokerClient client) { if (client.SupportedVisualRecognitionThemes.Count > 0) { cmbPokerClientTheme.DataSource = client.SupportedVisualRecognitionThemes; cmbPokerClientTheme.Enabled = true; // If a colormap became available during the last update, CurrentTheme needs to be changed if (client.CurrentTheme == "") { client.SetTheme(client.SupportedVisualRecognitionThemes[0].ToString()); // Force save settings Globals.UserSettings.CurrentPokerClient = client; // Commit Globals.UserSettings.Save(); } } else { ArrayList list = new ArrayList(); list.Add("Feature not yet supported"); cmbPokerClientTheme.DataSource = list; cmbPokerClientTheme.Enabled = false; } }
private void cmbPokerClientTheme_SelectionChangeCommitted(object sender, EventArgs e) { PokerClient client = userSettings.CurrentPokerClient; client.SetTheme(cmbPokerClientTheme.Text); userSettings.CurrentPokerClient = client; }
private void cmbPokerClientTheme_SelectionChangeCommitted(object sender, EventArgs e) { PokerClient client = Globals.UserSettings.CurrentPokerClient; client.SetTheme(cmbPokerClientTheme.Text); // Tell directory that we have changed the client Globals.Director.ChangePokerClient(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; }