Exemplo n.º 1
0
        private void btnAccount_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmAccount account = new frmAccount();

            account.Show();
        }
Exemplo n.º 2
0
        private void btnInfor_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmAccount f = new frmAccount(LoginAccount);

            f.UpdateAccount += f_UpdateAccount;
            f.ShowDialog();
        }
Exemplo n.º 3
0
        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmAccount frm_acc = new frmAccount();

            frm_acc.ShowDialog();
        }
Exemplo n.º 4
0
        private void act_lbl_Click(object sender, EventArgs e)
        {
            bool IsOpen   = false;
            int  tabcount = 0;

            foreach (Form f in Application.OpenForms)
            {
                if (f.Text == "Account")
                {
                    tabForms.SelectedTab = tabForms.TabPages[tabcount - 2];
                    IsOpen = true;
                    f.Focus();
                    break;
                }
                tabcount++;
            }

            if (IsOpen == false)
            {
                frmAccount frm = new frmAccount();
                frm.FormBorderStyle  = FormBorderStyle.None;
                frm.StartPosition    = FormStartPosition.Manual;
                frm.Location         = new Point((this.Width - frm.Width) / 2, this.Location.Y + (this.Height - frm.Height) / 2);
                this.pnlMain.Visible = false;
                frm.MdiParent        = this;

                frm.Show();
            }
        }
Exemplo n.º 5
0
        private void lblManagerAccount_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmAccount frm_acc = new frmAccount();

            frm_acc.ShowDialog();
        }
Exemplo n.º 6
0
 private void btnAccount_Click(object sender, EventArgs e)
 {
     if (checkLogin())
     {
         frmAccount frmAccount = new frmAccount(this);
         changeLayer(frmAccount);
     }
 }
Exemplo n.º 7
0
        private void btnAccount_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmAccount f = new frmAccount(loginaccount);

            f.UpdateAccount += F_UpdateAccount;
            f.MdiParent      = this;
            f.Show();
        }
Exemplo n.º 8
0
 private void cmdAccount_Click(object sender, EventArgs e)
 {
     if (lstWorkstations.SelectedIndex != -1)
     {
         var xOpen = new frmAccount();
         xOpen.ShowDialog();
     }
 }
Exemplo n.º 9
0
        private void btnAccount_Click(object sender, EventArgs e)
        {
            pnlAddForm.Controls.Clear();
            lblTittle.Text = "Tài Khoản Nhân Viên";
            frmAccount account = new frmAccount();

            account.TopLevel = false;
            pnlAddForm.Controls.Add(account);
            account.Dock = DockStyle.Fill;
            account.Show();
        }
Exemplo n.º 10
0
 private void btnAccount_Click(object sender, EventArgs e)
 {
     if (checkQuyen(QUYEN))
     {
         pnZone.Controls.Clear();
         frmAccount frmAccount = new frmAccount();
         frmAccount.TopLevel = false;
         pnZone.Controls.Add(frmAccount);
         frmAccount.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         frmAccount.AutoScroll      = true;
         frmAccount.Dock            = DockStyle.Fill;
         frmAccount.Show();
     }
 }
Exemplo n.º 11
0
        private void barbtniAccount_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form accListForm = this.checkExist(typeof(frmAccount));

            if (accListForm != null)
            {
                accListForm.Activate();
            }
            else
            {
                //create new one
                accListForm           = new frmAccount();
                accListForm.MdiParent = this;
                //set fill parent
                accListForm.Dock = DockStyle.Fill;
                //turn off border style
                accListForm.FormBorderStyle = FormBorderStyle.None;
                //show
                accListForm.Show();
            }
        }
 private void dgvClients_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     int        index       = dgvClients.CurrentRow.Index;
     Guid       _accountId  = new Guid(dgvClients.Rows[index].Cells[0].Value.ToString());
     frmAccount _frmAccount = new frmAccount(frmMainParent, _accountId);
 }
 private void btnOpenClient_Click(object sender, EventArgs e)
 {
     int        index       = dgvClients.CurrentRow.Index;
     Guid       _accountId  = new Guid(dgvClients.Rows[index].Cells[0].Value.ToString());
     frmAccount _frmAccount = new frmAccount(frmMainParent, _accountId);
 }
Exemplo n.º 14
0
        private void accountsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAccount frm = new frmAccount();

            LoadForm(frm);
        }