コード例 #1
0
        private void btnAccount_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmAccount account = new frmAccount();

            account.Show();
        }
コード例 #2
0
ファイル: frmTableManage.cs プロジェクト: vdtqn/CDIO4
        private void btnInfor_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmAccount f = new frmAccount(LoginAccount);

            f.UpdateAccount += f_UpdateAccount;
            f.ShowDialog();
        }
コード例 #3
0
        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmAccount frm_acc = new frmAccount();

            frm_acc.ShowDialog();
        }
コード例 #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();
            }
        }
コード例 #5
0
        private void lblManagerAccount_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmAccount frm_acc = new frmAccount();

            frm_acc.ShowDialog();
        }
コード例 #6
0
 private void btnAccount_Click(object sender, EventArgs e)
 {
     if (checkLogin())
     {
         frmAccount frmAccount = new frmAccount(this);
         changeLayer(frmAccount);
     }
 }
コード例 #7
0
        private void btnAccount_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmAccount f = new frmAccount(loginaccount);

            f.UpdateAccount += F_UpdateAccount;
            f.MdiParent      = this;
            f.Show();
        }
コード例 #8
0
 private void cmdAccount_Click(object sender, EventArgs e)
 {
     if (lstWorkstations.SelectedIndex != -1)
     {
         var xOpen = new frmAccount();
         xOpen.ShowDialog();
     }
 }
コード例 #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();
        }
コード例 #10
0
ファイル: frmMain.cs プロジェクト: Hoanguitk12/FastFood4U
 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();
     }
 }
コード例 #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();
            }
        }
コード例 #12
0
 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);
 }
コード例 #13
0
 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);
 }
コード例 #14
0
        private void accountsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAccount frm = new frmAccount();

            LoadForm(frm);
        }