private void btnAppUsers_Click(object sender, EventArgs e) { Cursor = Cursors.WaitCursor; Form fx = new frmUserList(); fx.MdiParent = this; fx.Show(); Cursor = Cursors.Default; }
private void button1_Click_1(object sender, EventArgs e) { frmUserList userList = new frmUserList(); userList.TopLevel = false; pnlContent.Controls.Clear(); pnlContent.Controls.Add(userList); userList.Show(); }
private void btnAddUserToOrganization_Click(object sender, RoutedEventArgs e) { Window window = new Window(); frmUserList frm = new frmUserList(); frm.UserSelected += (sender1, e1) => frm_UserSelected(sender1, e1, window); window.Content = frm; window.Title = "انتخاب کاربر"; window.ShowDialog(); }
//User Settings clicked private void btnUser_Click(object sender, EventArgs e) { if (UserDockWindow == null) { UserDockWindow = new DocumentWindow(); UserDockWindow.CloseAction = DockWindowCloseAction.Close; fmUserMain = new frmUserList(); fmUserMain.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; fmUserMain.TopLevel = false; fmUserMain.Dock = DockStyle.Fill; UserDockWindow.Text = fmUserMain.Text; UserDockWindow.Controls.Add(fmUserMain); this.radDock1.AddDocument(UserDockWindow); fmUserMain.Show(); } else { UserDockWindow.Show(); } }
private void UserList_Click(object sender, EventArgs e) { var frmUserList = new frmUserList(); frmUserList.Show(); }
private void treeList1_DoubleClick(object sender, EventArgs e) { DataRow tempSelectMenu = ((System.Data.DataRowView)(myTreeList.GetDataRecordByNode(myTreeList.FocusedNode))).Row; switch (Convert.ToString(tempSelectMenu["FORMNAME"])) { case "frmStudentList": frmStudentList frmObjStudentList = new frmStudentList(); frmObjStudentList.KeyPress += frm_KeyPress; frmObjStudentList.MdiParent = this; frmObjStudentList.Show(); break; case "frmUserList": frmUserList frmObjUserList = new frmUserList(); frmObjUserList.KeyPress += frm_KeyPress; frmObjUserList.MdiParent = this; frmObjUserList.Show(); break; case "frmCategoryList": frmCategoryList frmObjCategoryList = new frmCategoryList(); frmObjCategoryList.KeyPress += frm_KeyPress; frmObjCategoryList.MdiParent = this; frmObjCategoryList.Show(); break; case "frmAuthorList": frmAuthorList frmObjAuthorList = new frmAuthorList(); frmObjAuthorList.KeyPress += frm_KeyPress; frmObjAuthorList.MdiParent = this; frmObjAuthorList.Show(); break; case "frmBookList": frmBookList frmObjBookList = new frmBookList(); frmObjBookList.KeyPress += frm_KeyPress; frmObjBookList.MdiParent = this; frmObjBookList.Show(); break; case "frmBookOutList": frmBookOutList frmBookOutList = new frmBookOutList(); frmBookOutList.KeyPress += frm_KeyPress; frmBookOutList.MdiParent = this; frmBookOutList.Show(); break; case "frmBookPurchaseList": frmBookPurchaseList frmBookPurchaseList = new frmBookPurchaseList(); frmBookPurchaseList.KeyPress += frm_KeyPress; frmBookPurchaseList.MdiParent = this; frmBookPurchaseList.Show(); break; case "frmBookRemainderList": frmBookRemainderList frmBookRemainderList = new frmBookRemainderList(); frmBookRemainderList.KeyPress += frm_KeyPress; frmBookRemainderList.MdiParent = this; frmBookRemainderList.Show(); break; case "frmBookOrderResolution": frmBookOrderResolution frmBookOrderResolution = new frmBookOrderResolution(); frmBookOrderResolution.KeyPress += frm_KeyPress; frmBookOrderResolution.MdiParent = this; frmBookOrderResolution.Show(); break; case "frmBookOrder": frmBookOrder frmBookOrder = new frmBookOrder(); frmBookOrder.KeyPress += frm_KeyPress; frmBookOrder.MdiParent = this; frmBookOrder.Show(); break; case "frmBookOrderLateList": frmBookOrderLateList frmBookOrderLateList = new frmBookOrderLateList(); frmBookOrderLateList.KeyPress += frm_KeyPress; frmBookOrderLateList.MdiParent = this; frmBookOrderLateList.Show(); break; case "frmBookOrderTakeList": frmBookOrderTakeList frmBookOrderTakeList = new frmBookOrderTakeList(); frmBookOrderTakeList.KeyPress += frm_KeyPress; frmBookOrderTakeList.MdiParent = this; frmBookOrderTakeList.Show(); break; case "frmBookOrderPayList": frmBookOrderPayList frmBookOrderPayList = new frmBookOrderPayList(); frmBookOrderPayList.KeyPress += frm_KeyPress; frmBookOrderPayList.MdiParent = this; frmBookOrderPayList.Show(); break; } }
private void userManagementToolStripMenuItem_Click(object sender, EventArgs e) { var frm = new frmUserList(); FormHelpers.ShowForm(frm, this); }
private void userListToolStripMenuItem_Click(object sender, EventArgs e) { frmUserList frm = new frmUserList(); frm.MdiParent = this; frm.Show(); }
private void ManageUserToolStripMenuItem_Click(object sender, EventArgs e) { var frm = new frmUserList(); frm.ShowDialog(); }