Example #1
0
        private void menuChiTiet_Click(object sender, EventArgs e)
        {
            DTO.AccountDTO loginAccount = DAO.AccountDAO.Instance.GetAccount(fDangNhap.userName);
            fChiTiet       f            = new fChiTiet(loginAccount);

            f.ShowDialog();
        }
Example #2
0
        private void btnDangNhap_Click(object sender, EventArgs e)
        {
            string UserName = txbDangNhap.Text;
            string PassWord = txbMatKhau.Text;

            if (DangNhap(UserName, PassWord))
            {
                userName = txbDangNhap.Text;
                DTO.AccountDTO loginAccount = DAO.AccountDAO.Instance.GetAccount(UserName);
                fQuanLyThuVien f            = new fQuanLyThuVien(loginAccount);
                this.Hide();
                f.ShowDialog();
                this.Show();
            }
            else
            {
                MessageBox.Show("Sai tên đăng nhập hoặc mật khẩu!", "Thông báo");
            }
        }
Example #3
0
 public fQuanLyThuVien(DTO.AccountDTO acc)
 {
     InitializeComponent();
     this.LoginAccount = acc;
 }
Example #4
0
 public AccountEvent(DTO.AccountDTO acc)
 {
     this.Acc = acc;
 }
Example #5
0
 void ChangeAccount(DTO.AccountDTO acc)
 {
     txbTenDangNhapTTCN.Text = LoginAccount.UserName;
     txbTenHienThiTTCN.Text  = LoginAccount.DisplayName;
 }
Example #6
0
 public fThongTinCaNhan(DTO.AccountDTO acc)
 {
     InitializeComponent();
     LoginAccount = acc;
 }
Example #7
0
 public fChiTiet(DTO.AccountDTO acc)
 {
     InitializeComponent();
     this.LoginAccount = acc;
 }