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;
}
}