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