Quản lý điểm khoa công nghệ thông tin C#

1 using System;
2 using
System.Collections.Generic;
3 using
System.ComponentModel;
4 using
System.Data;
5 using
System.Drawing;
6 using
System.Linq;
7 using
System.Text;
8 using
System.Windows.Forms;
9
10 namespace
QuanLyDiem
11 {
12     
public partial class FormDangNhap : Form
13     {
14         
public FormDangNhap()
15         {
16             InitializeComponent();
17         }
18         BLL.ClassBLL business =
new BLL.ClassBLL();
19         
private void btnDong_Click(object sender, EventArgs e)
20         {
21             
this.Close();
22         }
23
24         
private void txtTenDangNhap_KeyPress(object sender, KeyPressEventArgs e)
25         {
26             
if (e.KeyChar == ' ')
27                 e.Handled =
true;
28         }
29
30         
private void btnDangNhap_Click(object sender, EventArgs e)
31         {
32             
int quyen=business.CheckLogin(txtTenDangNhap.Text, txtMatKhau.Text);
33             
if (quyen != -1)
34             {
35                 Form9.quyen = quyen;
36                 Form9 f = (Form9)
this.MdiParent;
37                 f.PhanQuyenMenu();
38                 
this.Close();
39             }
40             
else
41             {
42                 MessageBox.Show(
"Sai Tên Đăng Nhập Hoặc Mật Khẩu !!");
43             }
44         }
45     }
46 }



Quản lý điểm khoa công nghệ thông tin C# 7.381 lượt xem

Gõ tìm kiếm nhanh...