Пример #1
0
 public override void Fill(LabelPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
     if (propertyBag.IsCurrency)
     {
         propertyBag.CurrencySymbol = ControlLibraryConfig.ResourceService.GetCurrencySymbol();
     }
 }
Пример #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));
            }
        }
Пример #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));
            }
        }
Пример #4
0
 public override void Fill(CheckBoxListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Пример #5
0
        public override void Fill(ButtonPropertyBag propertyBag, FillerParams fillerParams)
        {
            FillLiteral(propertyBag, fillerParams, true);

        }
Пример #6
0
 public override void Fill(DateTimePropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Пример #7
0
 public LabelPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {            
     
 }
Пример #8
0
 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);
 }
Пример #12
0
 public RadioButtonListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
     this.fillerParams = fillerParam;
 }
 public TemplateDropDownPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
Пример #14
0
 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)
 {
 }
Пример #18
0
 public override void Fill(TemplateListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Пример #19
0
 public TemplateListPropertyBag(FillerParams fillerParam)
     : base(fillerParam)
 {
 }
Пример #20
0
 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)
 {
 }
Пример #23
0
 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)
 {
 }
Пример #26
0
 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);
 }
Пример #30
0
 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);
 }
Пример #34
0
 public override void Fill(TextAreaPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Пример #35
0
 public override void Fill(GridPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Пример #36
0
 public override void Fill(DropDownPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Пример #37
0
 public RadioButtonPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
Пример #38
0
 public override void Fill(RadioButtonListPropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Пример #39
0
 public CheckBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }
Пример #40
0
 public override void Fill(ShuttlePropertyBag propertyBag, FillerParams fillerParams)
 {
     FillLiteral(propertyBag, fillerParams);
 }
Пример #41
0
 public PasswordBoxPropertyBag(FillerParams fillerParams)
     : base(fillerParams)
 {
 }