Exemple #1
0
 public void SetOptions()
 {
     this.AnalyzerType = GetAnalyzerType();
     this.HCCalculatorParams.AnalyzerParms.AnalyzerType = this.AnalyzerType.ToString();
     if (this.HCCalculatorParams.AnalyzerParms.AnalyzerType == string.Empty ||
         this.HCCalculatorParams.AnalyzerParms.AnalyzerType == Constants.NONE)
     {
         this.HCCalculatorParams.ErrorMessage
             = Errors.MakeStandardErrorMsg("ANALYSES_CHOOSEONE");
     }
     this.HCCalculatorParams.AnalyzerParms.AnalyzerGeneralType
         = GetBaseAnalyzerType(this.AnalyzerType);
     this.HCCalculatorParams.AnalyzerParms.SubFolderType
         = AnalyzerHelper.GetSubFolderType(this.HCCalculatorParams.LinkedViewElement);
     this.HCCalculatorParams.AnalyzerParms.ComparisonType
         = AnalyzerHelper.GetComparisonType(this.HCCalculatorParams.LinkedViewElement);
     this.HCCalculatorParams.AnalyzerParms.AggregationType
         = AnalyzerHelper.GetAggregationType(this.HCCalculatorParams.LinkedViewElement);
     this.HCCalculatorParams.AnalyzerParms.FilesToAnalyzeExtensionType
         = CalculatorHelpers.GetAttribute(this.HCCalculatorParams.LinkedViewElement,
                                          Calculator1.cFilesToAnalyzeExtensionType);
     this.HCCalculatorParams.CalculatorType
         = this.HCCalculatorParams.AnalyzerParms.FilesToAnalyzeExtensionType;
     if (this.AnalyzerType != ANALYZER_TYPES.resources01)
     {
         //resources01 uses the calculator pattern, which does not change startingdoctocalc
         this.HCCalculatorParams.StartingDocToCalcNodeName
             = GetNodeNameFromFileExtensionType(this.HCCalculatorParams.AnalyzerParms.FilesToAnalyzeExtensionType);
     }
     this.HCCalculatorParams.SubApplicationType
         = CalculatorHelpers.GetSubAppTypeFromNodeName2(
               this.HCCalculatorParams.StartingDocToCalcNodeName);
 }
Exemple #2
0
 public void SetOptions()
 {
     this.AnalyzerType = GetAnalyzerType();
     this.ME2CalculatorParams.AnalyzerParms.AnalyzerType = this.AnalyzerType.ToString();
     if (this.ME2CalculatorParams.AnalyzerParms.AnalyzerType == string.Empty ||
         this.ME2CalculatorParams.AnalyzerParms.AnalyzerType == Constants.NONE)
     {
         this.ME2CalculatorParams.ErrorMessage
             = Errors.MakeStandardErrorMsg("ANALYSES_CHOOSEONE");
     }
     this.ME2CalculatorParams.AnalyzerParms.AnalyzerGeneralType
         = GetBaseAnalyzerType(this.AnalyzerType);
     this.ME2CalculatorParams.AnalyzerParms.SubFolderType
         = AnalyzerHelper.GetSubFolderType(this.ME2CalculatorParams.LinkedViewElement);
     this.ME2CalculatorParams.AnalyzerParms.ComparisonType
         = AnalyzerHelper.GetComparisonType(this.ME2CalculatorParams.LinkedViewElement);
     this.ME2CalculatorParams.AnalyzerParms.AggregationType
         = AnalyzerHelper.GetAggregationType(this.ME2CalculatorParams.LinkedViewElement);
     //new in v1.4.5 (user can choose whether or not to display full calcs)
     this.ME2CalculatorParams.NeedsFullView
         = AnalyzerHelper.GetDisplayFullViewOption(this.ME2CalculatorParams.LinkedViewElement);
     this.ME2CalculatorParams.AnalyzerParms.FilesToAnalyzeExtensionType
         = CalculatorHelpers.GetAttribute(this.ME2CalculatorParams.LinkedViewElement,
                                          Calculator1.cFilesToAnalyzeExtensionType);
     this.ME2CalculatorParams.StartingDocToCalcNodeName
         = GetNodeNameFromFileExtensionType(this.ME2CalculatorParams.AnalyzerParms.FilesToAnalyzeExtensionType);
     this.ME2CalculatorParams.SubApplicationType
         = CalculatorHelpers.GetSubAppTypeFromNodeName2(
               this.ME2CalculatorParams.StartingDocToCalcNodeName);
 }