示例#1
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e F i l e C a p t                              //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Store current target File capture metrics data.                    //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void metricsSaveFileCapt(
            ToolCommonData.eToolIds crntToolId,
            ToolCommonData.eToolSubIds crntToolSubId,
            ToolCommonData.ePrintLang crntPDL,
            String saveFilename)
        {
            _targetType = eTarget.File;

            _saveFilename = saveFilename;

            TargetPersist.saveDataCommon((Int32)_targetType);

            //----------------------------------------------------------------//

            if (crntToolId == ToolCommonData.eToolIds.FontSample)
            {
                ToolFontSamplePersist.saveDataCapture(crntPDL,
                                                      saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.FormSample)
            {
                ToolFormSamplePersist.saveDataCapture(crntPDL,
                                                      saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.ImageBitmap)
            {
                ToolImageBitmapPersist.saveDataCapture(crntPDL,
                                                       saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrintArea)
            {
                ToolPrintAreaPersist.saveDataCapture(crntPDL,
                                                     saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrnPrint)
            {
                ToolPrnPrintPersist.saveDataCapture(crntPDL,
                                                    saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.StatusReadback)
            {
                ToolStatusReadbackPersist.saveDataCapture(crntPDL,
                                                          saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.TrayMap)
            {
                ToolTrayMapPersist.saveDataCapture(crntPDL,
                                                   saveFilename);
            }

            //----------------------------------------------------------------//

            else if (crntToolId == ToolCommonData.eToolIds.MiscSamples)
            {
                ToolMiscSamplesPersist.saveDataCapture(crntToolSubId,
                                                       crntPDL,
                                                       saveFilename);
            }

            //----------------------------------------------------------------//

            //  else
            //     Tool MakeOverlay // ***** Do DUMMY procs ? ***** //
            //     Tool PrintLang
            //     Tool PrnAnalyse
            //     Tool SoftFontGen
            //     Tool SymbolSetGen
            //     Tool XXXDiags
        }
示例#2
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s L o a d F i l e C a p t                              //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Load current target File capture metrics data.                     //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void metricsLoadFileCapt(
            ToolCommonData.eToolIds crntToolId,
            ToolCommonData.eToolSubIds crntToolSubId,
            ToolCommonData.ePrintLang crntPDL)
        {
            //----------------------------------------------------------------//

            if (crntToolId == ToolCommonData.eToolIds.FontSample)
            {
                ToolFontSamplePersist.loadDataCapture(crntPDL,
                                                      ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.FormSample)
            {
                ToolFormSamplePersist.loadDataCapture(crntPDL,
                                                      ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.ImageBitmap)
            {
                ToolImageBitmapPersist.loadDataCapture(crntPDL,
                                                       ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrintArea)
            {
                ToolPrintAreaPersist.loadDataCapture(crntPDL,
                                                     ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrnPrint)
            {
                ToolPrnPrintPersist.loadDataCapture(crntPDL,
                                                    ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.StatusReadback)
            {
                ToolStatusReadbackPersist.loadDataCapture(crntPDL,
                                                          ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.TrayMap)
            {
                ToolTrayMapPersist.loadDataCapture(crntPDL,
                                                   ref _saveFilename);
            }

            //----------------------------------------------------------------//

            else if (crntToolId == ToolCommonData.eToolIds.MiscSamples)
            {
                ToolMiscSamplesPersist.loadDataCapture(
                    crntToolSubId,
                    crntPDL,
                    ref _saveFilename);
            }

            //----------------------------------------------------------------//

            else
            {
                //     Tool MakeOverlay // ***** Do DUMMY procs ? ***** //
                //     Tool PrintLang
                //     Tool PrnAnalyse
                //     Tool SoftFontGen
                //     Tool SymbolSetGen
                //     Tool XXXDiags

                _saveFilename = "";
            }
        }