Exemplo n.º 1
0
        /* 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());
        }
Exemplo n.º 2
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);

            userSettings.CurrentPokerClient = client;
        }
Exemplo n.º 3
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;
        }