private void btnLogout_Click(object sender, EventArgs e) { _bot.LogOut(); _bot = null; btnRun.Enabled = false; btnLogout.Enabled = false; btnLogin.Enabled = true; btnCountInterwiki.Enabled = false; btnCreateTambon.Enabled = false; btnMap.Enabled = false; }
private void btnLogin_Click(object sender, EventArgs e) { var api = OpenConnection(); _helper = new WikiDataHelper(api); _bot = new WikiDataBot(_helper); foreach (var activity in _bot.AvailableTasks) { cbxActivity.Items.Add(activity); } btnRun.Enabled = true; btnLogout.Enabled = true; btnLogin.Enabled = false; btnCountInterwiki.Enabled = true; RefreshAmphoeSelection(); }