private void barNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmUser frmObj = new frmUser(); frmObj.FormClosed += frmObj_FormClosed; frmObj.MdiParent = frmMain.ActiveForm; frmObj.Show(); }
private void frmAddUser_FormClosed(object sender, FormClosedEventArgs e) { frmUser frm = new frmUser(); frm.WindowState = FormWindowState.Maximized; frm.MdiParent = Application.OpenForms["frmIndex"]; frm.Show(); }
private void SearchToolStripMenuItem_Click(object sender, EventArgs e) { HelperMethods.CloseAllForms(); //close all form first frmUser frm = new frmUser(); frm.MdiParent = Application.OpenForms["frmIndex"]; frm.WindowState = FormWindowState.Maximized; frm.Show(); }
private void btnEditUser_Click(object sender, EventArgs e) { if (userID != 0) { frmUser user = new frmUser(userID, this); user.Show(); } else { MessageBox.Show("Please Select User to Edit"); } }
private void userToolStripMenuItem_Click(object sender, EventArgs e) { try { frmUser frm = new frmUser(); frm.MdiParent = this; frm.Show(); } catch (Exception) { } }
private void btn1_5_Click(object sender, EventArgs e) { this.btn1_5.BackColor = Color.White; this.btn1_5.ForeColor = Color.Black; this.btn1_1.BackColor = this.btn1_2.BackColor = this.btn1_3.BackColor = this.btn1_4.BackColor = this.btn1_6.BackColor = this.btn1_7.BackColor = Color.Transparent; this.btn1_1.ForeColor = this.btn1_2.ForeColor = this.btn1_3.ForeColor = this.btn1_4.ForeColor = this.btn1_6.ForeColor = this.btn1_7.ForeColor = Color.White; CreateUser(); frmUser.TopLevel = false; pnlBackPage.Controls.Clear(); pnlBackPage.Controls.Add(frmUser); frmUser.Dock = DockStyle.Fill; frmUser.Show(); }
private void btnUser_Click(object sender, EventArgs e) { this.Hide(); if (frmLogin.roles == 1) { frmUser user = new frmUser(); user.Show(); } else { frmInfoUser infoUser = new frmInfoUser(); infoUser.Show(); } }
void gridControl1_DoubleClick(object sender, EventArgs e) { DataRow dr = gridView1.GetFocusedDataRow(); if (dr == null) { return; } frmUser frmObj = new frmUser(new object[] { dr["USERID"] }); frmObj.FormClosed += frmObj_FormClosed; frmObj.MdiParent = frmMain.ActiveForm; frmObj.Show(); }
private void btnCreateUser_Click(object sender, EventArgs e) { frmUser user = new frmUser(0, this); user.Show(); }