Example #1
0
        private void txtCategoryID_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmCategoryList frmObjCategoryList = new frmCategoryList(new object[] { "Browse", "ISACTIVE = 'Y'" });

            frmObjCategoryList.FormClosed += frmObjCategoryList_FormClosed;
            frmObjCategoryList.ShowDialog();
        }
Example #2
0
 private void mnuCategories_Click(object sender, EventArgs e)
 {
     if (!GlobalFunctions.formAlreadyOpen("frmCategoryList"))
     {
         frmCategoryList fCategoryList = new frmCategoryList();
         fCategoryList.MdiParent = this;
         fCategoryList.Show();
     }
 }
Example #3
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;
            }
        }
Example #4
0
        private void categoryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new frmCategoryList();

            FormHelpers.ShowForm(frm, this);
        }