Example #1
0
        private void StudentList_Click(object sender, EventArgs e)
        {
            var frmStudentList = new frmStudentList();

            //loadForm.showWaitForm(frmStudentList);
            frmStudentList.Show();
        }
Example #2
0
        private void txtStudentID_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmStudentList frmObjStudentList = new frmStudentList(new object[] { "Browse" });

            frmObjStudentList.FormClosed += frmObjStudentList_FormClosed;
            frmObjStudentList.ShowDialog();
        }
Example #3
0
        private static void MainForm_LoadCompleted(object sender, EventArgs e)
        {
            if (frmSplash == null || frmSplash.Disposing || frmSplash.IsDisposed)
            {
                return;
            }
            frmSplash.Invoke(new Action(() => { frmSplash.Close(); }));
            frmMain.TopMost = false;
            frmSplash.Dispose();
            frmSplash = null;
            if (Module.authentication.checkStatus())
            {
                frmStudentList           = new frmStudentList();
                frmStudentList.MdiParent = frmMain;
                frmStudentList.Show();
            }

            frmMain.Activate();
            frmMain.Focus();
        }
Example #4
0
 //Student Clicked
 private void btnStudent_Click(object sender, EventArgs e)
 {
     if (StudentDockWindow == null)
     {
         StudentDockWindow             = new DocumentWindow();
         StudentDockWindow.CloseAction = DockWindowCloseAction.Close;
         fmStudentList = new frmStudentList();
         fmStudentList.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         fmStudentList.TopLevel        = false;
         fmStudentList.Dock            = DockStyle.Fill;
         StudentDockWindow.Text        = fmStudentList.Text;
         StudentDockWindow.Controls.Add(fmStudentList);
         this.radDock1.AddDocument(StudentDockWindow);
         fmStudentList.Show();
     }
     else
     {
         StudentDockWindow.Show();
     }
     this.radDock1.ActiveWindow = StudentDockWindow;
 }
Example #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;
            }
        }