PokerMuck.PokerClient.SetTheme C# (CSharp) Method

SetTheme() public method

public SetTheme ( String theme ) : void
theme String
return void
        public void SetTheme(String theme)
        {
            if (SupportedVisualRecognitionThemes.Contains(theme)) this.currentTheme = theme;
            else this.currentTheme = "";
        }

Usage Example

Exemplo n.º 1
0
        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;
            }
        }
All Usage Examples Of PokerMuck.PokerClient::SetTheme