public MainForm() { Global.mainForm = this; Quản_Lý_Quán_CaFe.GUI.DangNhap dn = new GUI.DangNhap(); dn.ShowDialog(); taiKhoanBLL = dn.tkBLL; InitializeComponent(); Global.loadAllData(); khuVuc_BanUC1.loadKhuVuc_Ban(); parseDataHoaDonTrongNgay(Global.getListHoaDonTrongNgay(DateTime.Today)); XetQuyen(); }
public ThemTaiKhoan(TaiKhoanBLL _taiKhoanBLL) { taiKhoanBLL = _taiKhoanBLL; InitializeComponent(); xetquyen(); }
public DoiMatKhau(TaiKhoanBLL _taiKhoanBLL) { taiKhoanBLL = _taiKhoanBLL; InitializeComponent(); txtUser.Text = taiKhoanBLL.TaiKhoan.UserName.ToString(); }
public XoaTaiKhoan(TaiKhoanBLL _taiKhoanBLL) { taiKhoanBLL = _taiKhoanBLL; InitializeComponent(); parseDataTaiKhoan(taiKhoanBLL.LoadListTaiKhoan()); }
private void btn_Dangxuat_Click(object sender, EventArgs e) { if (MessageBox.Show("Bạn có muốn thoát?", "Thông Báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { Quản_Lý_Quán_CaFe.GUI.DangNhap dn = new GUI.DangNhap(); dn.ShowDialog(); taiKhoanBLL = dn.tkBLL; XetQuyen(); } }