public override void Fill(LabelPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
     if (propertyBag.IsCurrency)
     {
         propertyBag.CurrencySymbol = ControlLibraryConfig.ResourceService.GetCurrencySymbol();
     }
 }
        private void FillLiteral(ControlPropertyBag propertyBag, FillerParams fillerParams, bool skipWatermark=false)
        {
            string externalizationKey = string.Empty;
            if (fillerParams.IsBindingControl)
            {
                IModelPropertyConfiguration propertyConfig = ReadPropertyConfiguration(fillerParams.ModelName, fillerParams.PropertyName, fillerParams.ConfigKey);
                externalizationKey = propertyConfig != null ? propertyConfig.ExternalizationKey : string.Format(ControlLibConstants.EXTERNALIZATION_KEY_FORMAT, fillerParams.ModelName, fillerParams.PropertyName.Replace(".", "_"));
            }
            else
            {
                externalizationKey = fillerParams.ExternalizationKey;
            }

            propertyBag.Label = ControlLibraryConfig.ResourceService.GetLiteral(string.Format(ControlLibConstants.LABEL_FORMAT, externalizationKey));
            propertyBag.ToolTip = ControlLibraryConfig.ResourceService.GetLiteral(string.Format(ControlLibConstants.TOOLTIP_FORMAT, externalizationKey));
            if (!skipWatermark)
            {
                propertyBag.WaterMarkText = ControlLibraryConfig.ResourceService.GetLiteral(string.Format(ControlLibConstants.WATERMARK_FORMAT, externalizationKey));
            }
        }
        private void FillLiteral(ControlPropertyBag propertyBag, FillerParams fillerParams, bool skipWatermark = false)
        {
            string externalizationKey = string.Empty;

            if (fillerParams.IsBindingControl)
            {
                IModelPropertyConfiguration propertyConfig = ReadPropertyConfiguration(fillerParams.ModelName, fillerParams.PropertyName, fillerParams.ConfigKey);
                externalizationKey = propertyConfig != null ? propertyConfig.ExternalizationKey : string.Format(ControlLibConstants.EXTERNALIZATION_KEY_FORMAT, fillerParams.ModelName, fillerParams.PropertyName.Replace(".", "_"));
            }
            else
            {
                externalizationKey = fillerParams.ExternalizationKey;
            }

            propertyBag.Label   = ControlLibraryConfig.ResourceService.GetLiteral(string.Format(ControlLibConstants.LABEL_FORMAT, externalizationKey));
            propertyBag.ToolTip = ControlLibraryConfig.ResourceService.GetLiteral(string.Format(ControlLibConstants.TOOLTIP_FORMAT, externalizationKey));
            if (!skipWatermark)
            {
                propertyBag.WaterMarkText = ControlLibraryConfig.ResourceService.GetLiteral(string.Format(ControlLibConstants.WATERMARK_FORMAT, externalizationKey));
            }
        }
 public override void Fill(CheckBoxListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
        public override void Fill(ButtonPropertyBag propertyBag, FillerParams fillerParams)
        {
            FillLiteral(propertyBag, fillerParams, true);

        }
 public override void Fill(DateTimePropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Example #7
0
 public LabelPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {            
     
 }
 public override void Fill(PasswordBoxPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Example #9
0
 public TemplateListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
 public RadioButtonPropertyBag(FillerParams fillerParams)
     : base( fillerParams)
 {
     
 }
 public override void Fill(NumericTextBoxPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
 public RadioButtonListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
     this.fillerParams = fillerParam;
 }
 public TemplateDropDownPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
 public TemplateDropDownPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
Example #15
0
 public TextAreaPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
Example #16
0
 public NumericTextBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
 public CheckBoxListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
 public override void Fill(TemplateListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Example #19
0
 public TemplateListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
 public RadioButtonListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
     this.fillerParams = fillerParam;
 }
Example #21
0
 public CheckBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
Example #22
0
 public LabelPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
 public override void Fill(NumericTextBoxPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Example #24
0
 public TextAreaPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
Example #25
0
 public CheckBoxListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
 public NumericTextBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
 public override void Fill(PasswordBoxPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
 public PasswordBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
 public override void Fill(ButtonPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams, true);
 }
 public override void Fill(LabelPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
     if(propertyBag.IsCurrency)
         propertyBag.CurrencySymbol = ControlLibraryConfig.ResourceService.GetCurrencySymbol();            
 }
 public override void Fill(CheckBoxListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
 public override void Fill(RadioButtonListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
 public override void Fill(TemplateListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
 public override void Fill(TextAreaPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
 public override void Fill(GridPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
 public override void Fill(DropDownPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Example #37
0
 public RadioButtonPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
 public override void Fill(RadioButtonListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Example #39
0
 public CheckBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
 public override void Fill(ShuttlePropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Example #41
0
 public PasswordBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }