Ejemplo n.º 1
0
        private void loginProgress(object sender, DoWorkEventArgs e)
        {
            string[] parameters = e.Argument as string[];

            Login login = new Login(parameters[0], parameters[1], parameters[2]);

            string loginResult = login.loginRequest();

            HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
            doc.LoadHtml(login.getRespond());

            sqlMap.getTravianMap(parameters[0]);
            villageList.villageListDecode(doc);

            doMessage(flag.login_status, loginResult, villageList.getException());
        }