Пример #1
0
 private async void BotForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     Dispose();
     await SeleniumBot.ChangeBusyAccountManager(false);
 }
Пример #2
0
        private async void BotForm_Load(object sender, EventArgs e)
        {
            comboBox1.DataSource = await SeleniumBot.GetAllManagerAccounts();

            _ = Task.Run(() => SeleniumBot.Initialize());
        }
Пример #3
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            var account = (ManagerAccounts)comboBox1.SelectedItem;

            SeleniumBot.SetManagerAccount(account);
        }
Пример #4
0
 private void startButton_Click(object sender, EventArgs e)
 {
     _ = Task.Run(() => SeleniumBot.Work());
 }