Ejemplo n.º 1
0
 public void LoadFeatureSettings(ModuleFeature feature)
 {
     foreach (ParamControl param in feature.Params)
     {
         AddParamSetting(param);
     }
 }
Ejemplo n.º 2
0
 public void LoadFeatureSettings(ModuleFeature feature)
 {
     foreach (ParamControl param in feature.Params)
     {
         AddParamSetting(param);
     }
     OnSecurityPolicyChanged();
 }
Ejemplo n.º 3
0
 public MySpaceAppSettings(ModuleFeature feature)
 {
     LoadFeatureSettings(feature);
 }
Ejemplo n.º 4
0
 public ExternalTemplates(ModuleFeature feature)
 {
     LoadFeatureSettings(feature);
 }
Ejemplo n.º 5
0
 public GadgetSecurityPolicy(ModuleFeature feature)
 {
     LoadFeatureSettings(feature);
 }
Ejemplo n.º 6
0
 /// <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);
 }