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);
 }
Esempio n. 7
0
 public LabelPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {            
     
 }
 public override void Fill(PasswordBoxPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Esempio n. 9
0
 public TemplateListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
Esempio n. 10
0
 public RadioButtonPropertyBag(FillerParams fillerParams)
     : base( fillerParams)
 {
     
 }
Esempio n. 11
0
 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)
 {
 }
Esempio n. 15
0
 public TextAreaPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
Esempio n. 16
0
 public NumericTextBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
Esempio n. 17
0
 public CheckBoxListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
 public override void Fill(TemplateListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Esempio n. 19
0
 public TemplateListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
Esempio n. 20
0
 public RadioButtonListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
     this.fillerParams = fillerParam;
 }
Esempio n. 21
0
 public CheckBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
Esempio n. 22
0
 public LabelPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
 public override void Fill(NumericTextBoxPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Esempio n. 24
0
 public TextAreaPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
Esempio n. 25
0
 public CheckBoxListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
 public NumericTextBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
Esempio n. 27
0
 public override void Fill(PasswordBoxPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Esempio n. 28
0
 public PasswordBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
Esempio n. 29
0
 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();            
 }
Esempio n. 31
0
 public override void Fill(CheckBoxListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Esempio n. 32
0
 public override void Fill(RadioButtonListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Esempio n. 33
0
 public override void Fill(TemplateListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
 public override void Fill(TextAreaPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Esempio n. 35
0
 public override void Fill(GridPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
 public override void Fill(DropDownPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Esempio n. 37
0
 public RadioButtonPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
 public override void Fill(RadioButtonListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Esempio n. 39
0
 public CheckBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
 public override void Fill(ShuttlePropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Esempio n. 41
0
 public PasswordBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }