Ejemplo n.º 1
0
 public override void Fill(LabelPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
     if (propertyBag.IsCurrency)
     {
         propertyBag.CurrencySymbol = ControlLibraryConfig.ResourceService.GetCurrencySymbol();
     }
 }
Ejemplo n.º 2
0
        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));
            }
        }
Ejemplo n.º 3
0
        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));
            }
        }
Ejemplo n.º 4
0
 public override void Fill(CheckBoxListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 5
0
        public override void Fill(ButtonPropertyBag propertyBag, FillerParams fillerParams)
        {
            FillLiteral(propertyBag, fillerParams, true);

        }
Ejemplo n.º 6
0
 public override void Fill(DateTimePropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 7
0
 public LabelPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {            
     
 }
Ejemplo n.º 8
0
 public override void Fill(PasswordBoxPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 9
0
 public TemplateListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
Ejemplo n.º 10
0
 public RadioButtonPropertyBag(FillerParams fillerParams)
     : base( fillerParams)
 {
     
 }
Ejemplo n.º 11
0
 public override void Fill(NumericTextBoxPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 12
0
 public RadioButtonListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
     this.fillerParams = fillerParam;
 }
Ejemplo n.º 13
0
 public TemplateDropDownPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
Ejemplo n.º 14
0
 public TemplateDropDownPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
Ejemplo n.º 15
0
 public TextAreaPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
Ejemplo n.º 16
0
 public NumericTextBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
Ejemplo n.º 17
0
 public CheckBoxListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
Ejemplo n.º 18
0
 public override void Fill(TemplateListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 19
0
 public TemplateListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
Ejemplo n.º 20
0
 public RadioButtonListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
     this.fillerParams = fillerParam;
 }
Ejemplo n.º 21
0
 public CheckBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
Ejemplo n.º 22
0
 public LabelPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
Ejemplo n.º 23
0
 public override void Fill(NumericTextBoxPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 24
0
 public TextAreaPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
Ejemplo n.º 25
0
 public CheckBoxListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
Ejemplo n.º 26
0
 public NumericTextBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
Ejemplo n.º 27
0
 public override void Fill(PasswordBoxPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 28
0
 public PasswordBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
     
 }
Ejemplo n.º 29
0
 public override void Fill(ButtonPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams, true);
 }
Ejemplo n.º 30
0
 public override void Fill(LabelPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
     if(propertyBag.IsCurrency)
         propertyBag.CurrencySymbol = ControlLibraryConfig.ResourceService.GetCurrencySymbol();            
 }
Ejemplo n.º 31
0
 public override void Fill(CheckBoxListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 32
0
 public override void Fill(RadioButtonListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 33
0
 public override void Fill(TemplateListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 34
0
 public override void Fill(TextAreaPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 35
0
 public override void Fill(GridPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 36
0
 public override void Fill(DropDownPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 37
0
 public RadioButtonPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
Ejemplo n.º 38
0
 public override void Fill(RadioButtonListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 39
0
 public CheckBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
Ejemplo n.º 40
0
 public override void Fill(ShuttlePropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Ejemplo n.º 41
0
 public PasswordBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }