Пример #1
0
        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();
        }
Пример #2
0
 public ThemTaiKhoan(TaiKhoanBLL _taiKhoanBLL)
 {
     taiKhoanBLL = _taiKhoanBLL;
     InitializeComponent();
     xetquyen();
 }
Пример #3
0
 public DoiMatKhau(TaiKhoanBLL _taiKhoanBLL)
 {
     taiKhoanBLL = _taiKhoanBLL;
     InitializeComponent();
     txtUser.Text = taiKhoanBLL.TaiKhoan.UserName.ToString();
 }
Пример #4
0
 public XoaTaiKhoan(TaiKhoanBLL _taiKhoanBLL)
 {
     taiKhoanBLL = _taiKhoanBLL;
     InitializeComponent();
     parseDataTaiKhoan(taiKhoanBLL.LoadListTaiKhoan());
 }
Пример #5
0
 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();
     }
 }