public Main_Manager(Account_User account)
        {
            InitializeComponent();
            this.loginAccount = account;

            // Load dữ liệu bảng table_customer lên form
            Load_Table_Customer();

            // Load dữ liệu vào comboBox Products_Category để select thể loại món
            Load_Products_Category();

            // hàm kiểm tra xem tài khoản đăng nhập có phải tài khoản admin hay nhân viên.
            // Nếu type account = 1 tức là admin, ngược lại là nhân viên
            KiemTraTk_admin_or_staff(account.Type);
        }
Beispiel #2
0
 void KiemTraTk_admin_or_staff(Account_User account)
 {
     txt_Username.Text = account.UserName;
     txt_Display.Text  = account.DisplayName;
 }
Beispiel #3
0
 public AccountEvent(Account_User acc)
 {
     this.Acc = acc;
 }
Beispiel #4
0
 public Profile(Account_User account)
 {
     InitializeComponent();
     LoginAccount = account;
 }