public Home(CanBoDTO cb) { InitializeComponent(); this.ForeColor = Color.Black; this.cb = cb; if (cb.LoaiCanBo == "1") { ribbonPageGroup10.Visible = false; } }
private void DangNhap() { DataRow dt = DangNhapBUS.TimKiem(tbTaiKhoan.Text, tbMatKhau.Text); if (dt != null) { cb = new CanBoDTO(dt); Home home = new Home(cb); this.Hide(); home.Closed += (s, args) => this.Close(); home.Show(); } else { MessageBox.Show(this, "Tên đăng nhập hoặc mật khẩu không đúng!", "Đăng nhập", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public ThongTinCaNhanGUI(CanBoDTO cb) { InitializeComponent(); canbo = cb; }