Пример #1
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     eobj.username = tUName.Text;
     eobj.password = tUPassword.Text;
     dt            = ebll.LoginBLL(eobj);
     if (dt.Rows.Count > 0)
     {
         MessageBox.Show("Login Attempt sucessful", "Welcome", MessageBoxButtons.OK, MessageBoxIcon.Information);
         MainUI miui = new MainUI();
         miui.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Login Attempt unsucessful", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Пример #2
0
 public void MainUI_Load(object sender, EventArgs e)
 {
     DateTime.Text = System.DateTime.Now.ToLongDateString();
     td            = ebll.LoginBLL(eobj);
 }