示例#1
0
 private void lLblAdmin_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     BusinessLayer.Admin admin = AdminProcess.GetAdmin(txtUsername.Text, txtPassword.Text);
     if (admin == null)
     {
         lblCheckAdmin.Visible = true;
     }
     else
     {
         lblCheckAdmin.Visible = false;
         Admin admin1 = new Admin();
         admin1.adminName     = txtUsername.Text;
         admin1.adminPassword = txtPassword.Text;
         admin1.Show();
         this.Hide();
     }
 }