Esempio n. 1
0
        public FrmTableManager(DTO.Account acc)
        {
            InitializeComponent();

            this.LoginAccount = acc;

            LoadTable();
            loadCategory();
            LoadComboBoxTable(cbSwitchTable);
        }
Esempio n. 2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string username = txtUserName.Text;
            string password = txtPassWord.Text;

            if (Login(username, password))
            {
                DTO.Account     loginAccount = DAO.AccountDAO.Instance.GetAccontByUserName(username);
                FrmTableManager f            = new FrmTableManager(loginAccount);
                this.Hide();
                f.ShowDialog();
                this.Show();
            }
            else
            {
                MessageBox.Show("Sai tên tài khoản hoặc mật khẩu!");
            }
        }
Esempio n. 3
0
 public AccountEvent(DTO.Account acc)
 {
     this.Acc = acc;
 }
Esempio n. 4
0
 void ChangeAccount(DTO.Account acc)
 {
     txtUserName.Text    = loginAccount.UserName;
     txtDisplayName.Text = loginAccount.DisplayName;
 }
Esempio n. 5
0
 public FrmAccountFrofile(DTO.Account acc)
 {
     InitializeComponent();
     LoginAccount = acc;
 }