Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            //System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en");

            logMonitor = new LogMonitor(tbLog, tbLogScroll);

            infoManager = new InfoManager();
            infoManager.provideLVS(lvTasks, lvData, lvProxy);

            bot = new Bot(infoManager);

            colTaskName.DisplayMemberBinding      = new Binding("TaskName");
            colProfile.DisplayMemberBinding       = new Binding("ProfileName");
            colCheckoutDelay.DisplayMemberBinding = new Binding("CheckoutDelay");

            dataColProfileName.DisplayMemberBinding = new Binding("ProfileName");

            colProxyName.DisplayMemberBinding = new Binding("profileName");
            colIP.DisplayMemberBinding        = new Binding("ip");
            colUsername.DisplayMemberBinding  = new Binding("username");

            bot.logMonitor = logMonitor;

            logMonitor.addLogMessage(Properties.Resources.logLoadingData, "BOT");

            infoManager.loadProfilesList();
            infoManager.loadTasksList();
            infoManager.loadProxiesList();

            logMonitor.addLogMessage(Properties.Resources.logLoadingDataFinished, "BOT");

            cbCountry.SelectedIndex   = 0;
            cbCardType.SelectedIndex  = 0;
            cbCardMonth.SelectedIndex = 0;
            cbCardYear.SelectedIndex  = 0;

            bot.monitorCaptchas(lCapchasSolved);
        }