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