private void pmActivateMenu(string inMenuName)
        {
            switch (inMenuName.ToUpper())
            {
            case "SETCONFIG":
                App.SetAppConfig();
                break;

            case "SETRIGHT":
                Permission.frmSetPermission ofrmSetPermission = new Permission.frmSetPermission();
                ofrmSetPermission.MdiParent = this.MdiParent;
                ofrmSetPermission.Show();
                ofrmSetPermission.Activate();
                break;

            case "EDEPT":
                DatabaseForms.frmDept ofrmDept = mBudget.DatabaseForms.frmDept.GetInstanse();
                ofrmDept.MdiParent = this.MdiParent;
                ofrmDept.Show();
                ofrmDept.Activate();
                break;

            case "ESECT":
                DatabaseForms.frmSect ofrmSect = mBudget.DatabaseForms.frmSect.GetInstanse();
                ofrmSect.MdiParent = this.MdiParent;
                ofrmSect.Show();
                ofrmSect.Activate();
                break;
            }
        }
        private void pmActivateMenu(string inMenuName)
        {
            switch (inMenuName.ToUpper())
            {
            case "START":
                frmStartPage ofrmStartPage = frmStartPage.GetInstanse();
                ofrmStartPage.MdiParent = this;
                ofrmStartPage.Show();
                ofrmStartPage.Activate();
                break;

            case "EXIT":
                this.Close();
                break;

            case "SETCONFIG":
                App.SetAppConfig();
                break;

            case "SETRIGHT":
                Permission.frmSetPermission ofrmSetPermission = new Permission.frmSetPermission();
                ofrmSetPermission.MdiParent = this;
                ofrmSetPermission.Show();
                ofrmSetPermission.Activate();
                break;

            case "EBGBOOK":
                DatabaseForms.frmWsBook ofrmWsBook = mBudget.DatabaseForms.frmWsBook.GetInstanse();
                ofrmWsBook.MdiParent = this;
                ofrmWsBook.Show();
                ofrmWsBook.Activate();
                break;

            case "EBUDTYPE":
                DatabaseForms.frmBudType ofrmRetVal = mBudget.DatabaseForms.frmBudType.GetInstanse();
                ofrmRetVal.MdiParent = this;
                ofrmRetVal.Show();
                ofrmRetVal.Activate();
                break;

            case "EBUDCH":
                DatabaseForms.frmBudChart ofrmBudChart = mBudget.DatabaseForms.frmBudChart.GetInstanse();
                ofrmBudChart.MdiParent = this;
                ofrmBudChart.Show();
                ofrmBudChart.Activate();
                break;

            case "EBGALLOCATE":
                DatabaseForms.frmBudAllocate ofrmBudAllocate = mBudget.DatabaseForms.frmBudAllocate.GetInstanse();

                if (ofrmBudAllocate != null)
                {
                    ofrmBudAllocate.MdiParent = this;
                    ofrmBudAllocate.Show();
                    ofrmBudAllocate.Activate();
                }
                break;

            case "EDEPT":
                DatabaseForms.frmDept ofrmDept = mBudget.DatabaseForms.frmDept.GetInstanse();
                ofrmDept.MdiParent = this;
                ofrmDept.Show();
                ofrmDept.Activate();
                break;

            case "ESECT":
                DatabaseForms.frmSect ofrmSect = mBudget.DatabaseForms.frmSect.GetInstanse();
                ofrmSect.MdiParent = this;
                ofrmSect.Show();
                ofrmSect.Activate();
                break;
            }
        }