Exemplo n.º 1
0
 private void btnRefreshMap_Click(object sender, EventArgs e)
 {
     comboBoxMap.Items.Clear();
     foreach (string MapName in SpyDB.GetMapList())
     {
         comboBoxMap.Items.Add(MapName);
     }
 }
Exemplo n.º 2
0
 private void btnRefreshFight_Click(object sender, EventArgs e)
 {
     comboBoxFight.Items.Clear();
     foreach (string FightName in SpyDB.GetFightList())
     {
         comboBoxFight.Items.Add(FightName);
     }
 }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
        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);
        }