Exemplo n.º 1
0
 private void btnOK_Click(object sender, System.EventArgs e)
 {
     if (ServiceHelper.WebServiceHelper.CheckAuthentication(Constant.WebserviceUrl.CheckAuthenticationUrl,
                                                            txtUserName.Text, txtPassword.Text))
     {
         Form1 frm = new Form1();
         Form1.user = txtUserName.Text;
         Form1.pass = txtPassword.Text;
         this.Hide();
         frm.ShowDialog();
     }
     else
     {
         frmError frmErr = new frmError();
         frmErr.ShowDialog();
     }
 }
Exemplo n.º 2
0
 private void btnOK_Click(object sender, System.EventArgs e)
 {
     if (ServiceHelper.WebServiceHelper.CheckAuthentication(Constant.WebserviceUrl.CheckAuthenticationUrl,
                                                            txtUserName.Text, txtPassword.Text))
     {
         Form1 frm = new Form1();
         Form1.user = txtUserName.Text;
         Form1.pass = txtPassword.Text;
         this.Hide();
         frm.ShowDialog();
     }
     else
     {
         frmError frmErr = new frmError();
         frmErr.ShowDialog();
     }
 }