Exemplo n.º 1
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e F i l e R p t                                //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Store current target report file metrics data.                     //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void metricsSaveFileRpt(
            ToolCommonData.eToolIds crntToolId,
            ReportCore.eRptFileFmt rptFileFmt,
            ReportCore.eRptChkMarks rptChkMarks,
            Boolean flagOptRptWrap)
        {
            Int32 tmpFmt      = (Int32)rptFileFmt;
            Int32 tmpChkMarks = (Int32)rptChkMarks;

            if (crntToolId == ToolCommonData.eToolIds.MakeOverlay)
            {
                ToolMakeOverlayPersist.saveDataRpt(tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrintLang)
            {
                ToolPrintLangPersist.saveDataRpt(tmpFmt, tmpChkMarks,
                                                 flagOptRptWrap);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrnAnalyse)
            {
                ToolPrnAnalysePersist.saveDataRpt(tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.SoftFontGenerate)
            {
                ToolSoftFontGenPersist.saveDataRpt(tmpFmt, tmpChkMarks);
            }
            else if (crntToolId == ToolCommonData.eToolIds.StatusReadback)
            {
                ToolStatusReadbackPersist.saveDataRpt(tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.SymbolSetGenerate)
            {
                ToolSymbolSetGenPersist.saveDataRpt(tmpFmt);
            }
        }
Exemplo n.º 2
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s L o a d F i l e R p t                                //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Load current target report file metrics data.                      //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void metricsLoadFileRpt(
            ToolCommonData.eToolIds crntToolId)
        {
            Int32 tmpFmt      = 0,
                  tmpChkMarks = 0;

            Byte indxFmtNA    = (Byte)ReportCore.eRptFileFmt.NA;
            Byte indxOptChkNA = (Byte)ReportCore.eRptChkMarks.NA;

            Boolean flagNA = false;

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

            if (crntToolId == ToolCommonData.eToolIds.MakeOverlay)
            {
                ToolMakeOverlayPersist.loadDataRpt(ref tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrintLang)
            {
                ToolPrintLangPersist.loadDataRpt(ref tmpFmt, ref tmpChkMarks,
                                                 ref _flagOptRptWrap);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrnAnalyse)
            {
                ToolPrnAnalysePersist.loadDataRpt(ref tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.SoftFontGenerate)
            {
                ToolSoftFontGenPersist.loadDataRpt(ref tmpFmt,
                                                   ref tmpChkMarks);
            }
            else if (crntToolId == ToolCommonData.eToolIds.StatusReadback)
            {
                ToolStatusReadbackPersist.loadDataRpt(ref tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.SymbolSetGenerate)
            {
                ToolSymbolSetGenPersist.loadDataRpt(ref tmpFmt);
            }
            else
            {
                flagNA = true;
            }

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

            if (flagNA)
            {
                tmpFmt = indxFmtNA;
            }
            else
            {
                if (tmpFmt >= indxFmtNA)
                {
                    tmpFmt = 0;
                }

                if (tmpChkMarks >= indxOptChkNA)
                {
                    tmpChkMarks = 0;
                }
            }

            _rptFileFmt  = (ReportCore.eRptFileFmt)tmpFmt;
            _rptChkMarks = (ReportCore.eRptChkMarks)tmpChkMarks;
        }