private void SetStandardMode(StandardModeEnum standardModeEnum) { if (standardModeEnum != StandardMode) { StandardMode = standardModeEnum; SetStandardMode(); } }
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(); }
internal void SaveUpgradeMode(StandardModeEnum standardMode) { this.assessmentModeData.SaveMode(standardMode); }