Exemplo n.º 1
0
        private void btnAppUsers_Click(object sender, EventArgs e)
        {
            Cursor = Cursors.WaitCursor;
            Form fx = new frmUserList();

            fx.MdiParent = this;
            fx.Show();
            Cursor = Cursors.Default;
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 //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();
     }
 }
Exemplo n.º 4
0
        private void UserList_Click(object sender, EventArgs e)
        {
            var frmUserList = new frmUserList();

            frmUserList.Show();
        }
Exemplo n.º 5
0
        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 userListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmUserList frm = new frmUserList();
     frm.MdiParent = this;
     frm.Show();
 }