示例#1
0
 private void SetStandardMode(StandardModeEnum standardModeEnum)
 {
     if (standardModeEnum != StandardMode)
     {
         StandardMode = standardModeEnum;
         SetStandardMode();
     }
 }
示例#2
0
        public void SaveMode(StandardModeEnum standardMode)
        {
            if (standardMode == StandardModeEnum.Question)
            {
                standard.Application_Mode = QUESTIONS_BASED_APPLICATION_MODE;
            }
            else if (standardMode == StandardModeEnum.Requirement)
            {
                standard.Application_Mode = REQUIREMENTS_BASED_APPLICATION_MODE;
            }
            else if (standardMode == StandardModeEnum.NISTFramework)
            {
                standard.Application_Mode = NIST_FRAMEWORK_MODE;
            }
            else
            {
                standard.Application_Mode = QUESTIONS_BASED_APPLICATION_MODE;
                //CSETLogger.Error("Can't determine mode of assessment. ApplicationMode: " + standardMode);
                Debug.Assert(false, "Can't determine mode of assessment. ApplicationMode: " + standardMode);
            }

            DataContext.SaveChanges();
        }
示例#3
0
 internal void SaveUpgradeMode(StandardModeEnum standardMode)
 {
     this.assessmentModeData.SaveMode(standardMode);
 }