Exemplo n.º 1
0
        private void btnTaiKhoan_Click(object sender, EventArgs e)
        {
            Account currentAccount = new Account();

            currentAccount = accountBUS.getAccountByUsername(this.parent.currentUser.Username);
            ActivateButton(sender, RGBColors.color1);
            //OpenChildForm(new frmTaiKhoan());
            if (currentAccount.Type == 1)
            {
                this.Hide();
                frmAdmin formAdmin = new frmAdmin();
                formAdmin.ShowDialog();
            }
            else
            {
                this.Hide();
                frmTaiKhoan formTK = new frmTaiKhoan(this);
                formTK.ShowDialog();
            }
            btnHome_Click(sender, e);
            this.Show();
        }
Exemplo n.º 2
0
 public frmUpdateTK(frmAdmin parent)
 {
     this.parent = parent;
     InitializeComponent();
 }