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

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

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