private void CheckConfig(ActiveForumsTapatalkModuleSettings settings) { if (settings.ForumModuleId >= 0 && settings.ForumTabId >= 0) return; tapatalkConfigWarning.Visible = true; tapatalkConfigWarning.InnerText = LocalizeString("ConfigWarning"); }
public static ActiveForumsTapatalkModuleSettings Create(Hashtable moduleSettings) { var result = new ActiveForumsTapatalkModuleSettings { IsOpen = ReadBool(moduleSettings, IsOpenKey, IsOpenDefault), AllowAnonymous = ReadBool(moduleSettings, AllowAnonymousKey, AllowAnonymousDefault), ForumModuleId = ReadInt(moduleSettings, ForumModuleIdKey, ForumModuleIdDefault), ForumTabId = ReadInt(moduleSettings, ForumTabIdKey, ForumTabIdDefault), RegistrationUrl = ReadString(moduleSettings, RegistrationUrlKey, RegistrationUrlDefault), SearchPermission = (SearchPermissions)ReadInt(moduleSettings, SearchPermissionKey, (int)SearchPermissionDefault), IsTapatalkDetectionEnabled = ReadBool(moduleSettings, IsTapatalkDetectionEnabledKey, IsTapatalkDetectionEnabledDefault) }; return(result); }
public static ActiveForumsTapatalkModuleSettings Create(Hashtable moduleSettings) { var result = new ActiveForumsTapatalkModuleSettings { IsOpen = ReadBool(moduleSettings, IsOpenKey, IsOpenDefault), AllowAnonymous = ReadBool(moduleSettings, AllowAnonymousKey, AllowAnonymousDefault), ForumModuleId = ReadInt(moduleSettings, ForumModuleIdKey, ForumModuleIdDefault), ForumTabId = ReadInt(moduleSettings, ForumTabIdKey, ForumTabIdDefault), RegistrationUrl = ReadString(moduleSettings, RegistrationUrlKey, RegistrationUrlDefault), SearchPermission = (SearchPermissions)ReadInt(moduleSettings, SearchPermissionKey, (int)SearchPermissionDefault), IsTapatalkDetectionEnabled = ReadBool(moduleSettings, IsTapatalkDetectionEnabledKey, IsTapatalkDetectionEnabledDefault) }; return result; }