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

            switch (name)
            {
            case "BomP09":
            case "MocP10":
                form = new frmReport();
                break;

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

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

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

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

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

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

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

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

            default:
                break;
            }

            if (form == null)
            {
                return;
            }
            this.Hide();
            form.ShowDialog();
            this.Show();
        }
コード例 #2
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();
        }