private void LoadDefaultSettings() { _SelectBy = Defaults.SelectBy; _MultipleHandling = Defaults.MultipleHandling; _Interval = Defaults.Interval; _EnableUserTimeConversion = Defaults.EnableUserTimeConversion; _CategoryID = Defaults.CategoryID; _ProfilePropertyName = Defaults.ProfilePropertyName; _IncludeDisabled = Defaults.IncludeDisabled; _HideWhenNoContent = Defaults.HideWhenNoContent; _ReplaceTitle = Defaults.ReplaceTitle; _ReplaceTokens = Defaults.ReplaceTokens; }
public void LoadSettings() { if (Settings != null) { if (Settings.Count == 0) { PreConfigureSettings(ModuleId, TabModuleID); } else { _SelectBy = GetSetting("SelectBy", Defaults.SelectBy); _MultipleHandling = GetSetting("MultipleHandling", Defaults.MultipleHandling); _Interval = GetSetting("Interval", Defaults.Interval); _EnableUserTimeConversion = GetSetting("EnableUserTimeConversion", Defaults.EnableUserTimeConversion); _CategoryID = GetSetting("CategoryID", Defaults.CategoryID); _ProfilePropertyName = GetSetting("ProfilePropertyName", Defaults.ProfilePropertyName); _IncludeDisabled = GetSetting("IncludeDisabled", Defaults.IncludeDisabled); _HideWhenNoContent = GetSetting("HideWhenNoContent", Defaults.HideWhenNoContent); _ReplaceTitle = GetSetting("ReplaceTitle", Defaults.ReplaceTitle); _ReplaceTokens = GetSetting("ReplaceTokens", Defaults.ReplaceTokens); } } }