コード例 #1
0
        private void getMappingFormAndShowDialog(string name)
        {
            Form form = null;

            switch (name)
            {
            case "reportBomP09":
            case "reportMocP10":
                form = new frmReport();
                break;

            case "reportMocP07":
                form = new frmReportMocP07();
                break;

            case "reportPurP17":
                form = new frmReportPurP17();
                break;

            case "toolTestMvSecurityScanBo":
                form = new frmTestMvSecurityScanBo();
                break;

            case "toolTestExtract":
                form = new frmTestExtract();
                break;

            case "toolTestProcessBar":
                form = new frmTestProcessBar();
                break;

            case "toolTestDiskScan":
                form = new frmDiskScan();
                break;

            case "toolTestAD":
                form = new frmTestAD();
                break;

            case "formBomCompare":
                form = new frmBomCompare();
                break;

            case "formBom":
                form = new frmBom();
                break;

            case "formBomCompareDev":
                form = new frmBomCompareDev();
                break;

            case "formMoc":
                form = new frmMoc();
                break;

            case "toolItCisco":
                form = new frmItCisco();
                break;

            case "toolItMxMail":
                form = new frmItMxMail();
                break;

            case "formBomToMocCompare":
                form = new frmBomToMocCompare();
                break;

            case "formErpCreatePR":
                form = new frmErpCreatePR();
                break;

            case "formMcBatchJob":
                form = new frmMcBatchJob();
                break;

            case "formErpCustomerOrder":
                form = new frmERPCustomerOrder();
                break;

            default:
                break;
            }

            if (form == null)
            {
                return;
            }

            this.Hide();
            form.ShowDialog();
            this.Show();
        }