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

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

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