SetTheme() public méthode

public SetTheme ( String theme ) : void
theme String
Résultat void
Exemple #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;
            }
        }
Exemple #2
0
        private void cmbPokerClientTheme_SelectionChangeCommitted(object sender, EventArgs e)
        {
            PokerClient client = userSettings.CurrentPokerClient;

            client.SetTheme(cmbPokerClientTheme.Text);

            userSettings.CurrentPokerClient = client;
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        /* 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;
        }
Exemple #5
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;
            }
        }