public PropertyConfiguration(SerializationInfo info, StreamingContext context) { this.Key = (string)info.GetValue(ControlLibConstants.KEY, typeof(string)); this.AutoCompleteProperties = (AutoCompleteBehaviourPropertyBag)info.GetValue(ControlLibConstants.AUTOCOMPLETE_PROPERTIES, typeof(AutoCompleteBehaviourPropertyBag)); this.MaskingProperties = (MaskingBehaviourPropertyBag)info.GetValue(ControlLibConstants.MASKING_PROPERTIES, typeof(MaskingBehaviourPropertyBag)); this.AccessPolicyCode = (string)info.GetValue(ControlLibConstants.ACCESS_POLICY_CODE, typeof(string)); this.Validators = (List<ValidationBase>)info.GetValue(ControlLibConstants.VALIDATORS, typeof(List<ValidationBase>)); this.DateProperties = (DatePropertyBag)info.GetValue(ControlLibConstants.DATE_PROPERTIES, typeof(DatePropertyBag)); ; this.TimeProperties = (TimePropertyBag)info.GetValue(ControlLibConstants.TIME_PROPERTIES, typeof(TimePropertyBag)); ; this.Security = (List<Security>)info.GetValue(ControlLibConstants.SECURITY, typeof(List<Security>)); this.SiteConfig = (List<SiteConfig>)info.GetValue(ControlLibConstants.SITECONFIG, typeof(List<SiteConfig>)); }
public PropertyConfiguration(SerializationInfo info, StreamingContext context) { this.Key = (string)info.GetValue(ControlLibConstants.KEY, typeof(string)); this.AutoCompleteProperties = (AutoCompleteBehaviourPropertyBag)info.GetValue(ControlLibConstants.AUTOCOMPLETE_PROPERTIES, typeof(AutoCompleteBehaviourPropertyBag)); this.MaskingProperties = (MaskingBehaviourPropertyBag)info.GetValue(ControlLibConstants.MASKING_PROPERTIES, typeof(MaskingBehaviourPropertyBag)); this.AccessPolicyCode = (string)info.GetValue(ControlLibConstants.ACCESS_POLICY_CODE, typeof(string)); this.Validators = (List <ValidationBase>)info.GetValue(ControlLibConstants.VALIDATORS, typeof(List <ValidationBase>)); this.DateProperties = (DatePropertyBag)info.GetValue(ControlLibConstants.DATE_PROPERTIES, typeof(DatePropertyBag));; this.TimeProperties = (TimePropertyBag)info.GetValue(ControlLibConstants.TIME_PROPERTIES, typeof(TimePropertyBag));; this.Security = (List <Security>)info.GetValue(ControlLibConstants.SECURITY, typeof(List <Security>)); this.SiteConfig = (List <SiteConfig>)info.GetValue(ControlLibConstants.SITECONFIG, typeof(List <SiteConfig>)); }
public PropertyConfiguration(string key, List<ValidationBase> validators, string accessPolicyCode = "",Dictionary<string,object> behaviourDtls = null) { this.Key = key; this.AccessPolicyCode = accessPolicyCode; this.Validators = validators; if (null != behaviourDtls) { this.AutoCompleteProperties = behaviourDtls.ContainsKey(ControlLibConstants.AUTOCOMPLETE_BAG) ? behaviourDtls[ControlLibConstants.AUTOCOMPLETE_BAG] as AutoCompleteBehaviourPropertyBag : null; this.MaskingProperties = behaviourDtls.ContainsKey(ControlLibConstants.MASKING_BAG) ? behaviourDtls[ControlLibConstants.MASKING_BAG] as MaskingBehaviourPropertyBag : null; ; this.DateProperties = behaviourDtls.ContainsKey(ControlLibConstants.DATE_BAG) ? behaviourDtls[ControlLibConstants.DATE_BAG] as DatePropertyBag : null; this.TimeProperties = behaviourDtls.ContainsKey(ControlLibConstants.TIME_BAG) ? behaviourDtls[ControlLibConstants.TIME_BAG] as TimePropertyBag : null; ; } }
public PropertyConfiguration(string key, List <ValidationBase> validators, string accessPolicyCode = "", Dictionary <string, object> behaviourDtls = null) { this.Key = key; this.AccessPolicyCode = accessPolicyCode; this.Validators = validators; if (null != behaviourDtls) { this.AutoCompleteProperties = behaviourDtls.ContainsKey(ControlLibConstants.AUTOCOMPLETE_BAG) ? behaviourDtls[ControlLibConstants.AUTOCOMPLETE_BAG] as AutoCompleteBehaviourPropertyBag : null; this.MaskingProperties = behaviourDtls.ContainsKey(ControlLibConstants.MASKING_BAG) ? behaviourDtls[ControlLibConstants.MASKING_BAG] as MaskingBehaviourPropertyBag : null;; this.DateProperties = behaviourDtls.ContainsKey(ControlLibConstants.DATE_BAG) ? behaviourDtls[ControlLibConstants.DATE_BAG] as DatePropertyBag : null; this.TimeProperties = behaviourDtls.ContainsKey(ControlLibConstants.TIME_BAG) ? behaviourDtls[ControlLibConstants.TIME_BAG] as TimePropertyBag : null;; } }