Esempio n. 1
0
 private void Btn_Ok_Click(object sender, EventArgs e)
 {
     if (this.Txt_LoginID.Text == "")
     {
         CommFunc.PublicMessageAll("输入代理账号不能为空!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_LoginID.Focus();
     }
     else if (this.Txt_LoginPW.Text == "")
     {
         CommFunc.PublicMessageAll("输入代理密码不能为空!", true, MessageBoxIcon.Asterisk, "");
         this.Txt_LoginPW.Focus();
     }
     else
     {
         string pHint = "";
         if (SQLData.DLUserLogin(this.Txt_LoginID.Text, this.Txt_LoginPW.Text, this.AccountData, ref pHint))
         {
             base.DialogResult = DialogResult.OK;
         }
         else
         {
             CommFunc.PublicMessageAll(pHint, true, MessageBoxIcon.Asterisk, "");
             this.Txt_LoginID.SelectAll();
             this.Txt_LoginID.Focus();
         }
     }
 }