public void LoadFeatureSettings(ModuleFeature feature) { foreach (ParamControl param in feature.Params) { AddParamSetting(param); } }
public void LoadFeatureSettings(ModuleFeature feature) { foreach (ParamControl param in feature.Params) { AddParamSetting(param); } OnSecurityPolicyChanged(); }
public MySpaceAppSettings(ModuleFeature feature) { LoadFeatureSettings(feature); }
public ExternalTemplates(ModuleFeature feature) { LoadFeatureSettings(feature); }
public GadgetSecurityPolicy(ModuleFeature feature) { LoadFeatureSettings(feature); }
/// <summary> /// Adds a control to the internal collections. /// If the control is a special control - ex: Link /// it will be added to the correct special List. /// </summary> /// <param name="control"></param> /// <returns></returns> public override BaseGadgetControl AddControl(BaseGadgetControl control) { base.AddControl(control); //make sure it is in the main controls collection if (null == control) { return(null); } if (control is ModuleFeature) { ModuleFeature feature = (ModuleFeature)control; if (control is ModuleRequire) { RequiredFeatures.Add((ModuleRequire)control); } else if (control is ModuleOptional) { OptionalFeatures.Add((ModuleOptional)control); } //MySpace settings - should be Optional element, but we'll allow either optional or require if (MySpaceAppSettings.FEATURE_KEY.Equals(feature.Feature, StringComparison.InvariantCultureIgnoreCase)) { MySpaceAppSettings.LoadFeatureSettings(feature); } //MySpace settings - should be Optional element, but we'll allow either optional or require else if (MySpaceViewSettings.FEATURE_KEY.Equals(feature.Feature, StringComparison.InvariantCultureIgnoreCase)) { MySpaceViewSettings.LoadFeatureSettings(feature); } //OpenSocial templates else if (ExternalTemplates.FEATURE_KEY.Equals(feature.Feature, StringComparison.InvariantCultureIgnoreCase)) { TemplateLibraries.LoadFeatureSettings(feature); } //Security Policy else if (GadgetSecurityPolicy.FEATURE_KEY.Equals(feature.Feature, StringComparison.InvariantCultureIgnoreCase)) { this.SecurityPolicy.LoadFeatureSettings(feature); } } else if (control is Locale) { this.Locales.Add((Locale)control); } else if (control is Link) { this.Links.Add((Link)control); } else if (control is ModuleIcon) { ModuleIcon icon = (ModuleIcon)control; if (icon.Mode == "base64") { IconUrl = null; } else { IconUrl = icon.Src; } this.IconControl = icon; } return(control); }