public void GoTo(string address, Bookmaker bookmaker)
 {
     bookmakerSettings = BookmakersSettingsCollection.Get(bookmaker);
     if (bookmakerSettings.UseProxy)
     {
         SetProxy();
     }
     GoTo(address);
 }
        public void Save(BetsLibrary.Bookmaker bookmaker)
        {
            BookmakerSettings settings = BookmakersSettingsCollection.Get(bookmaker);

            settings.Login         = Login.Text;
            settings.Password      = Password.Password;
            settings.IP            = ProxyIP.Text;
            settings.Port          = ProxyPort.Text;
            settings.ProxyLogin    = ProxyLogin.Text;
            settings.ProxyPassword = ProxyPassword.Password;
            settings.UseProxy      = UseProxy.IsChecked == true;
            settings.BetSize       = BetSize.Text;
            settings.AutoSelect    = AutoBet.IsChecked == true;

            BookmakersSettingsCollection.Save();
        }
Exemple #3
0
        private void InitializeTitan()
        {
            BookmakerSettings settings = BookmakersSettingsCollection.Get(BetsLibrary.Bookmaker.Titanbet);

            TitanbetControl.FillControl(settings);
        }
Exemple #4
0
        private void InitializeLeon()
        {
            BookmakerSettings settings = BookmakersSettingsCollection.Get(BetsLibrary.Bookmaker.Leon);

            LeonControl.FillControl(settings);
        }
Exemple #5
0
        private void InitializeOlimp()
        {
            BookmakerSettings settings = BookmakersSettingsCollection.Get(BetsLibrary.Bookmaker.Olimp);

            OlimpControl.FillControl(settings);
        }
Exemple #6
0
        private void InitializeMarathon()
        {
            BookmakerSettings settings = BookmakersSettingsCollection.Get(BetsLibrary.Bookmaker.Marathonbet);

            MarathonControl.FillControl(settings);
        }