private void Login() { PostMessage pm = new PostMessage(); //pm.getCapchta(); bool result = pm.login(tb_loginCode.Text, tb_password.Text, tb_captcha.Text); if (result) { MainView mv = new MainView(); mv.Show(); this.Hide(); } }