Пример #1
0
        void OnTextStyleEditorChanged(object sender, EventArgs e)
        {
            if (!isInitialized)
            {
                return;
            }

            DesignTextStyle textStyle = (DesignTextStyle)_textStyleProperty.GetValue(_objectItem);

            if (textStyle.Family == familyEditor.ValueAsExpression &&
                textStyle.Size == sizeEditor.ValueAsExpression &&
                textStyle.Style == styleEditor.ValueAsExpression &&
                textStyle.Weight == weightEditor.ValueAsExpression &&
                textStyle.Decoration == decorationEditor.ValueAsExpression &&
                textStyle.Color == colorEditor.ValueAsExpression
                )
            {
                return;
            }

            DesignTextStyle newStyle = new DesignTextStyle(
                familyEditor.ValueAsExpression, sizeEditor.ValueAsExpression, styleEditor.ValueAsExpression,
                weightEditor.ValueAsExpression, decorationEditor.ValueAsExpression, colorEditor.ValueAsExpression);

            _textStyleProperty.SetValue(_objectItem, newStyle);
            if (_reportItemDescriptor != null && _reportItem != null)
            {
                _reportItemDescriptor.SetValue(_reportItem, _objectItem);
            }
        }
Пример #2
0
 public DayStyle(ExpressionInfo dayBackcolor, DesignLineStyle borderStyle, DesignTextStyle fontStyle, ExpressionInfo dayTextAlign, ExpressionInfo dayVerticalAlign)
 {
     _dayBackcolor     = dayBackcolor;
     _borderStyle      = borderStyle;
     _fontStyle        = fontStyle;
     _dayTextAlign     = dayTextAlign;
     _dayVerticalAlign = dayVerticalAlign;
 }
Пример #3
0
 public WeekendStyle(ExpressionInfo weekendBackcolor, DesignLineStyle weekendBorder, DesignTextStyle weekendFont, ExpressionInfo weekendTextAlign, ExpressionInfo weekendVerticalAlign)
 {
     _weekendBackcolor     = weekendBackcolor;
     _weekendBorder        = weekendBorder;
     _weekendFont          = weekendFont;
     _weekendTextAlign     = weekendTextAlign;
     _weekendVerticalAlign = weekendVerticalAlign;
 }
Пример #4
0
            public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
            {
                ExpressionInfo  color   = (ExpressionInfo)propertyValues[DayHeadersBackColorName];
                DesignLineStyle borders = (DesignLineStyle)propertyValues[DayHeadersBorderName];
                DesignTextStyle font    = (DesignTextStyle)propertyValues[DayHeadersFontStyleName];

                return(new DayHeadersStyle(color, borders, font));
            }
Пример #5
0
 public FillerDayStyle(ExpressionInfo fillerDayBackcolor, DesignLineStyle fillerDayBorderStyle, DesignTextStyle fillerDayFontStyle, ExpressionInfo fillerDayTextAlign, ExpressionInfo fillerDayVerticalAlign)
 {
     _fillerDayBackcolor     = fillerDayBackcolor;
     _fillerDayBorderStyle   = fillerDayBorderStyle;
     _fillerDayFontStyle     = fillerDayFontStyle;
     _fillerDayTextAlign     = fillerDayTextAlign;
     _fillerDayVerticalAlign = fillerDayVerticalAlign;
 }
Пример #6
0
 public MonthTitleStyle(ExpressionInfo monthTitleBackcolor, DesignLineStyle monthTitleBorderStyle, DesignTextStyle monthTitleFontStyle, ExpressionInfo monthTitleTextAlign, ExpressionInfo monthTitleFormat)
 {
     _monthTitleBackcolor   = monthTitleBackcolor;
     _monthTitleBorderStyle = monthTitleBorderStyle;
     _monthTitleFontStyle   = monthTitleFontStyle;
     _monthTitleTextAlign   = monthTitleTextAlign;
     _monthTitleFormat      = monthTitleFormat;
 }
Пример #7
0
 public AppointmentStyle(ExpressionInfo backgroundColor, ExpressionInfo borderColor, DesignTextStyle fontStyle, ExpressionInfo textAlign, ExpressionInfo format, DesignImage image)
 {
     _backgroundColor = backgroundColor;
     _borderColor     = borderColor;
     _fontStyle       = fontStyle;
     _textAlign       = textAlign;
     _format          = format;
     _image           = image;
 }
Пример #8
0
            public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
            {
                ExpressionInfo  backColor     = (ExpressionInfo)propertyValues[DayBackcolorPropertyName];
                DesignLineStyle borderStyle   = (DesignLineStyle)propertyValues[DayBorderStylePropertyName];
                DesignTextStyle fontStyle     = (DesignTextStyle)propertyValues[DayFontStylePropertyName];
                ExpressionInfo  textAlign     = (ExpressionInfo)propertyValues[DayTextAlignPropertyName];
                ExpressionInfo  verticalAlign = (ExpressionInfo)propertyValues[DayVerticalAlignPropertyName];

                return(new DayStyle(backColor, borderStyle, fontStyle, textAlign, verticalAlign));
            }
Пример #9
0
            public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
            {
                ExpressionInfo  backColor   = (ExpressionInfo)propertyValues[MonthTitleBackcolorPropertyName];
                DesignLineStyle borderStyle = (DesignLineStyle)propertyValues[MonthTitleBorderStylePropertyName];
                DesignTextStyle fontStyle   = (DesignTextStyle)propertyValues[MonthTitleFontStylePropertyName];
                ExpressionInfo  textAlign   = (ExpressionInfo)propertyValues[MonthTitleTextAlignPropertyName];
                ExpressionInfo  format      = (ExpressionInfo)propertyValues[MonthTitleFormatPropertyName];

                return(new MonthTitleStyle(backColor, borderStyle, fontStyle, textAlign, format));
            }
Пример #10
0
            public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
            {
                ExpressionInfo  backColor   = (ExpressionInfo)propertyValues[EventBackcolorPropertyName];
                ExpressionInfo  borderColor = (ExpressionInfo)propertyValues[EventBorderColorPropertyName];
                DesignTextStyle fontStyle   = (DesignTextStyle)propertyValues[EventFontPropertyName];
                ExpressionInfo  textAlign   = (ExpressionInfo)propertyValues[EventTextAlignPropertyName];
                ExpressionInfo  format      = (ExpressionInfo)propertyValues[EventFormatPropertyName];
                DesignImage     image       = (DesignImage)propertyValues[EventImagePropertyName];

                return(new AppointmentStyle(backColor, borderColor, fontStyle, textAlign, format, image));
            }
Пример #11
0
 public DayHeadersStyle(ExpressionInfo dayHeadersBackColor, DesignLineStyle dayHeadersBorderStyle, DesignTextStyle dayHeadersFontStyle)
 {
     _dayHeadersBorderStyle = dayHeadersBorderStyle;
     _dayHeadersBackColor   = dayHeadersBackColor;
     _dayHeadersFontStyle   = dayHeadersFontStyle;
 }