private async void BotForm_FormClosing(object sender, FormClosingEventArgs e) { Dispose(); await SeleniumBot.ChangeBusyAccountManager(false); }
private async void BotForm_Load(object sender, EventArgs e) { comboBox1.DataSource = await SeleniumBot.GetAllManagerAccounts(); _ = Task.Run(() => SeleniumBot.Initialize()); }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { var account = (ManagerAccounts)comboBox1.SelectedItem; SeleniumBot.SetManagerAccount(account); }
private void startButton_Click(object sender, EventArgs e) { _ = Task.Run(() => SeleniumBot.Work()); }