private void btnAccount_Click(object sender, EventArgs e) { this.Hide(); frmAccount account = new frmAccount(); account.Show(); }
private void btnInfor_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmAccount f = new frmAccount(LoginAccount); f.UpdateAccount += f_UpdateAccount; f.ShowDialog(); }
private void btnClose_Click(object sender, EventArgs e) { this.Hide(); frmAccount frm_acc = new frmAccount(); frm_acc.ShowDialog(); }
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(); } }
private void lblManagerAccount_Click(object sender, EventArgs e) { this.Hide(); frmAccount frm_acc = new frmAccount(); frm_acc.ShowDialog(); }
private void btnAccount_Click(object sender, EventArgs e) { if (checkLogin()) { frmAccount frmAccount = new frmAccount(this); changeLayer(frmAccount); } }
private void btnAccount_ItemClick(object sender, ItemClickEventArgs e) { frmAccount f = new frmAccount(loginaccount); f.UpdateAccount += F_UpdateAccount; f.MdiParent = this; f.Show(); }
private void cmdAccount_Click(object sender, EventArgs e) { if (lstWorkstations.SelectedIndex != -1) { var xOpen = new frmAccount(); xOpen.ShowDialog(); } }
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(); }
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(); } }
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); }
private void accountsToolStripMenuItem_Click(object sender, EventArgs e) { frmAccount frm = new frmAccount(); LoadForm(frm); }