private void btnRefreshMap_Click(object sender, EventArgs e) { comboBoxMap.Items.Clear(); foreach (string MapName in SpyDB.GetMapList()) { comboBoxMap.Items.Add(MapName); } }
private void btnRefreshFight_Click(object sender, EventArgs e) { comboBoxFight.Items.Clear(); foreach (string FightName in SpyDB.GetFightList()) { comboBoxFight.Items.Add(FightName); } }
private void btnRefresh_Click(object sender, EventArgs e) { comboBoxCharList.Items.Clear(); Dictionary <string, string> chars = new Dictionary <string, string>(); chars = SpyDB.GetChars(); if (chars.Count == 0) { return; } foreach (KeyValuePair <string, string> kk in chars) { comboBoxCharList.Items.Add(kk); } }
private void btnLogin_Click(object sender, EventArgs e) { if (string.IsNullOrWhiteSpace(comboBoxCharList.Text)) { return; } KeyValuePair <string, string> singlechar = (KeyValuePair <string, string>)comboBoxCharList.SelectedItem; Dictionary <string, string> result = SpyDB.GetCharLoginInfo(singlechar.Key); if (result.Count == 0) { MessageBox.Show("数据库没有找到信息,检查视图v_login_info的数据"); return; } SpyLogin.initme(result["AccountName"], result["AccountPass"], result["RealmName"], result["CharIdx"], result["AccountList"]); SpyLogin.start(); //while (!SpyLogin.IsOK) { Thread.Sleep(100); }; //MessageBox.Show("OKOK_____AUTO Login"); //ObjectManager.Initialize(SpyLogin.WOW_P.Id); }