예제 #1
0
        private void InitializeComponent()
        {
            _isInitialized = false;

            using (new SuspendLayoutTransaction(this))
            {
                AutoSize = true;

                //
                // _initialVisibilityEditor
                //
                _initialVisibilityEditor        = new InitialVisibilityEditor(_serviceProvider, _visibilityWrapper);
                _initialVisibilityEditor.Margin = System.Windows.Forms.Padding.Empty;
                Controls.Add(_initialVisibilityEditor);
                //
                // toggleVisibilityBox
                //
                toggleVisibilityBox                 = new CheckBoxEx(_serviceProvider);
                toggleVisibilityBox.Dock            = DockStyle.Top;
                toggleVisibilityBox.Text            = Resources.ToggleVisibilityCaption;
                toggleVisibilityBox.CheckedChanged += toggleVisibilityBox_CheckedChanged;
                Controls.Add(toggleVisibilityBox);
                //
                // toggleItemEditor
                //
                toggleItemEditor = new TypedValueEditor(_serviceProvider,
                                                        Resources.ToggleItemEditorCaption, _visibilityWrapper, VisibilityWrapper.ToggleItemPropertyName);
                toggleItemEditor.Margin = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, toggleItemEditor.ControlInfo, 1);
                Controls.Add(toggleItemEditor);
            }

            _isInitialized = true;
        }
 private void InitializeControls()
 {
     using (new SuspendLayoutTransaction(this, true))
     {
         PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(Designer.ReportItem);
         PropertyDescriptor           dayHeadersDescriptor = pdc[CalendarDesigner.DayHeadersPropertyName];
         object dayHeadersObject = dayHeadersDescriptor.GetValue(Designer.ReportItem);
         PropertyDescriptorCollection dayHeadersConverterProperties = dayHeadersDescriptor.Converter.GetProperties(dayHeadersObject);
         //
         // fontEditor
         //
         DesignTextStyleEditor fontEditor = new DesignTextStyleEditor(ServiceProvider,
                                                                      dayHeadersObject, Designer.ReportItem, dayHeadersDescriptor, dayHeadersConverterProperties[DayHeadersStyle.DayHeadersFontStyleName]);
         Controls.Add(fontEditor);
         //
         // borderEditor
         //
         DesignLineStyleEditor borderEditor = new DesignLineStyleEditor(ServiceProvider,
                                                                        dayHeadersObject, Designer.ReportItem, dayHeadersDescriptor, dayHeadersConverterProperties[DayHeadersStyle.DayHeadersBorderName]);
         Controls.Add(borderEditor);
         //
         // backcolorEditor
         //
         TypedValueEditor backcolorEditor = new TypedValueEditor(ServiceProvider,
                                                                 Resources.CalendarSmartPanelBackgroundFillColorLabel, ComponentProperty.Create(dayHeadersConverterProperties[DayHeadersStyle.DayHeadersBackColorName], dayHeadersObject), Designer.ReportItem, dayHeadersDescriptor);
         backcolorEditor.Margin = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, backcolorEditor.ControlInfo, 1);
         Controls.Add(backcolorEditor);
     }
 }
예제 #3
0
 private void InitializeControls()
 {
     using (new SuspendLayoutTransaction(this, true))
     {
         PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(Designer.ReportItem);
         PropertyDescriptor           appointmentDescriptor = pdc[CalendarDesigner.EventPropertyName];
         object appointmentObject = appointmentDescriptor.GetValue(Designer.ReportItem);
         PropertyDescriptorCollection appointmentConverterProperties = appointmentDescriptor.Converter.GetProperties(appointmentObject);
         //
         // formatEditor
         //
         TypedValueEditor formatEditor = new TypedValueEditor(ServiceProvider,
                                                              Resources.CalendarSmartPanelFormatLabel, ComponentProperty.Create(appointmentConverterProperties[AppointmentStyle.EventFormatPropertyName], appointmentObject), Designer.ReportItem, appointmentDescriptor);
         formatEditor.Margin = System.Windows.Forms.Padding.Empty;
         Controls.Add(formatEditor);
         //
         // textAlignEditor
         //
         TypedValueEditor textAlignEditor = new TypedValueEditor(ServiceProvider,
                                                                 Resources.CalendarSmartPanelTextAlignLabel, ComponentProperty.Create(appointmentConverterProperties[AppointmentStyle.EventTextAlignPropertyName], appointmentObject), Designer.ReportItem, appointmentDescriptor);
         textAlignEditor.Margin = System.Windows.Forms.Padding.Empty;
         Controls.Add(textAlignEditor);
         //
         // fontEditor
         //
         DesignTextStyleEditor fontEditor = new DesignTextStyleEditor(ServiceProvider,
                                                                      appointmentObject, Designer.ReportItem, appointmentDescriptor, appointmentConverterProperties[AppointmentStyle.EventFontPropertyName]);
         fontEditor.Margin = System.Windows.Forms.Padding.Empty;
         Controls.Add(fontEditor);
         //
         // backgroundLabel
         //
         ControlGroupHeadingLabel backgroundLabel = new ControlGroupHeadingLabel(ServiceProvider);
         backgroundLabel.Text = Resources.CalendarSmartPanelBackgroundLabel;
         backgroundLabel.Dock = DockStyle.Top;
         Controls.Add(backgroundLabel);
         //
         // backgroundColorEditor
         //
         TypedValueEditor backcolorEditor = new TypedValueEditor(ServiceProvider,
                                                                 Resources.CalendarSmartPanelFillColorLabel, ComponentProperty.Create(appointmentConverterProperties[AppointmentStyle.EventBackcolorPropertyName], appointmentObject), Designer.ReportItem, appointmentDescriptor);
         backcolorEditor.Margin = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, backcolorEditor.ControlInfo, 1);
         Controls.Add(backcolorEditor);
         //
         // borderColorEditor
         //
         TypedValueEditor borderColorEditor = new TypedValueEditor(ServiceProvider,
                                                                   Resources.CalendarSmartPanelBorderColorLabel, ComponentProperty.Create(appointmentConverterProperties[AppointmentStyle.EventBorderColorPropertyName], appointmentObject), Designer.ReportItem, appointmentDescriptor);
         borderColorEditor.Margin = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, backcolorEditor.ControlInfo, 1);
         Controls.Add(borderColorEditor);
         //
         // Image properties for the appointment
         //
         DesignImageStyleEditor imageEditor = new DesignImageStyleEditor(ServiceProvider,
                                                                         appointmentObject, Designer.ReportItem, appointmentDescriptor, appointmentConverterProperties[AppointmentStyle.EventImagePropertyName]);
         imageEditor.Margin = System.Windows.Forms.Padding.Empty;
         Controls.Add(imageEditor);
     }
 }
예제 #4
0
        private void InitializeComponent()
        {
            // resolve property descriptor to a value
            object appointmentImage = _imageStyleProperty.GetValue(_objectItem);
            // get inner properties using converter to get proper property type converters
            PropertyDescriptorCollection properties = _imageStyleProperty.Converter.GetProperties(appointmentImage);
            PropertyDescriptor           source     = properties[ImageStyle.SourcePropertyName];
            PropertyDescriptor           value      = properties[ImageStyle.ValuePropertyName];
            PropertyDescriptor           mimeType   = properties[ImageStyle.MimeTypePropertyName];

            HorizontalPanel panel1 = new HorizontalPanel();

            using (new SuspendLayoutTransaction(this))
                using (new SuspendLayoutTransaction(panel1))
                {
                    panel1.AutoSize = AutoSize = true;
                    panel1.Margin   = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, _serviceProvider, 1);
                    //
                    // _imageStyleLabel
                    //
                    ControlGroupHeadingLabel _imageStyleLabel = new ControlGroupHeadingLabel(_serviceProvider);
                    _imageStyleLabel.Dock = DockStyle.Top;
                    _imageStyleLabel.Text = Resources.ImageLabel;
                    //
                    // sourceEditor
                    //
                    sourceEditor =
                        new TypedValueEditor(_serviceProvider, Resources.SourceLabel,
                                             ComponentProperty.Create(source, appointmentImage));
                    sourceEditor.Validated += OnImageEditorChanged;
                    sourceEditor.Margin     = System.Windows.Forms.Padding.Empty;
                    //
                    // value Value
                    //
                    valueEditor =
                        new TypedValueEditor(_serviceProvider, Resources.ValueTypeLabel,
                                             ComponentProperty.Create(value, appointmentImage));
                    valueEditor.Validated += OnImageEditorChanged;
                    valueEditor.Margin     = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, valueEditor.ControlInfo, 1);
                    //
                    //style Value
                    //
                    mimeTypeEditor =
                        new TypedValueEditor(_serviceProvider, Resources.MimeTypeLabel,
                                             ComponentProperty.Create(mimeType, appointmentImage));
                    mimeTypeEditor.Validated += OnImageEditorChanged;
                    mimeTypeEditor.Margin     = System.Windows.Forms.Padding.Empty;

                    panel1.Controls.Add(sourceEditor);
                    panel1.Controls.Add(mimeTypeEditor);

                    Controls.Add(_imageStyleLabel);
                    Controls.Add(panel1);
                    Controls.Add(valueEditor);
                }
            isInitialized = true;
        }
예제 #5
0
        private void InitializeComponent()
        {
            // resolve property descriptor to a value
            object appointmentImage = _lineStyleProperty.GetValue(_objectItem);
            // get inner properties using converter to get proper property type converters
            PropertyDescriptorCollection properties = _lineStyleProperty.Converter.GetProperties(appointmentImage);
            PropertyDescriptor           color      = properties[DesignLineStyle.LineColorPropertyName];
            PropertyDescriptor           width      = properties[DesignLineStyle.LineWidthPropertyName];
            PropertyDescriptor           style      = properties[DesignLineStyle.LineStylePropertyName];

            using (new SuspendLayoutTransaction(this))
            {
                this.AutoSize = true;
                //
                // _imageStyleLabel
                //
                ControlGroupHeadingLabel lineStyleLabel = new ControlGroupHeadingLabel(_serviceProvider);
                lineStyleLabel.Dock = DockStyle.Top;
                lineStyleLabel.Text = Resources.LineStyleLabel;
                Controls.Add(lineStyleLabel);

                HorizontalPanel horzPanel = new HorizontalPanel();
                horzPanel.AutoSize = true;
                horzPanel.Dock     = DockStyle.Top;
                horzPanel.Margin   = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, _serviceProvider, 1);
                Controls.Add(horzPanel);
                //
                // styleEditor
                //
                styleEditor =
                    new TypedValueEditor(_serviceProvider, Resources.LineStyle,
                                         ComponentProperty.Create(style, appointmentImage));
                styleEditor.Validated += OnLineStyleEditorChanged;
                styleEditor.Margin     = System.Windows.Forms.Padding.Empty;
                horzPanel.Controls.Add(styleEditor);
                //
                // widthEditor
                //
                widthEditor =
                    new TypedValueEditor(_serviceProvider, Resources.LineWidth,
                                         ComponentProperty.Create(width, appointmentImage));
                widthEditor.Validated += OnLineStyleEditorChanged;
                widthEditor.Margin     = System.Windows.Forms.Padding.Empty;
                horzPanel.Controls.Add(widthEditor);
                //
                // colorEditor
                //
                colorEditor =
                    new TypedValueEditor(_serviceProvider, Resources.LineColor,
                                         ComponentProperty.Create(color, appointmentImage));
                colorEditor.Validated += OnLineStyleEditorChanged;
                colorEditor.Margin     = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, colorEditor.ControlInfo, 1);
                Controls.Add(colorEditor);
            }
            isInitialized = true;
        }
예제 #6
0
            private void InitializeComponent()
            {
                _isInitialized = false;

                using (new SuspendLayoutTransaction(this))
                {
                    AutoSize = true;
                    //
                    // visibilityLabel
                    //
                    visibilityLabel      = new LabelEx(_serviceProvider);
                    visibilityLabel.Dock = DockStyle.Top;
                    visibilityLabel.Text = Resources.InitialVisibilityCaption;
                    Controls.Add(visibilityLabel);
                    //
                    // btnVisible
                    //
                    btnVisible                 = new RadioButtonEx(_serviceProvider);
                    btnVisible.Margin          = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, btnVisible.ControlInfo, 1);            // 1in
                    btnVisible.Dock            = DockStyle.Top;
                    btnVisible.Text            = Resources.InitialVisibilityVisibleLabel;
                    btnVisible.CheckedChanged += btnVisible_CheckedChanged;
                    Controls.Add(btnVisible);
                    //
                    // btnHidden
                    //
                    btnHidden                 = new RadioButtonEx(_serviceProvider);
                    btnHidden.Margin          = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, btnHidden.ControlInfo, 1);            // 1in
                    btnHidden.Dock            = DockStyle.Top;
                    btnHidden.Text            = Resources.InitialVisibilityHiddenLabel;
                    btnHidden.CheckedChanged += btnHidden_CheckedChanged;
                    Controls.Add(btnHidden);
                    //
                    // btnExpression
                    //
                    btnExpression                 = new RadioButtonEx(_serviceProvider);
                    btnExpression.Margin          = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, btnExpression.ControlInfo, 1);            // 1in
                    btnExpression.Dock            = DockStyle.Top;
                    btnExpression.Text            = Resources.InitialVisibilityExpressionLabel;
                    btnExpression.CheckedChanged += btnExpression_CheckedChanged;
                    Controls.Add(btnExpression);
                    //
                    // visibilityExpressionEditor
                    //
                    visibilityExpressionEditor = new TypedValueEditor(_serviceProvider,
                                                                      null, _visibilityWrapper, VisibilityWrapper.HiddenPropertyName);
                    visibilityExpressionEditor.Margin = System.Windows.Forms.Padding.Empty;
                    Controls.Add(visibilityExpressionEditor);
                }

                _isInitialized = true;
            }
예제 #7
0
 private void InitializeControls()
 {
     using (new SuspendLayoutTransaction(this, true))
     {
         PropertyDescriptorCollection pdc           = TypeDescriptor.GetProperties(Designer.ReportItem);
         PropertyDescriptor           dayDescriptor = pdc[CalendarDesigner.DayPropertyName];
         object dayObject = dayDescriptor.GetValue(Designer.ReportItem);
         PropertyDescriptorCollection dayConverterProperties = dayDescriptor.Converter.GetProperties(dayObject);
         //
         // fontEditor
         //
         DesignTextStyleEditor fontEditor = new DesignTextStyleEditor(ServiceProvider,
                                                                      dayObject, Designer.ReportItem, dayDescriptor, dayConverterProperties[DayStyle.DayFontStylePropertyName]);
         Controls.Add(fontEditor);
         //
         // borderEditor
         //
         DesignLineStyleEditor borderEditor = new DesignLineStyleEditor(ServiceProvider,
                                                                        dayObject, Designer.ReportItem, dayDescriptor, dayConverterProperties[DayStyle.DayBorderStylePropertyName]);
         Controls.Add(borderEditor);
         //
         // backcolorEditor
         //
         TypedValueEditor backcolorEditor = new TypedValueEditor(ServiceProvider,
                                                                 Resources.CalendarSmartPanelBackgroundFillColorLabel, ComponentProperty.Create(dayConverterProperties[DayStyle.DayBackcolorPropertyName], dayObject), Designer.ReportItem, dayDescriptor);
         backcolorEditor.Margin = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, backcolorEditor.ControlInfo, 1);
         Controls.Add(backcolorEditor);
         //
         // formatLabel
         //
         ControlGroupHeadingLabel formatLabel = new ControlGroupHeadingLabel(ServiceProvider);
         formatLabel.Text = Resources.CalendarSmartPanelFormattingLabel;
         formatLabel.Dock = DockStyle.Top;
         Controls.Add(formatLabel);
         //
         // textAlignEditor
         //
         TypedValueEditor textAlignEditor = new TypedValueEditor(ServiceProvider,
                                                                 Resources.CalendarSmartPanelTextAlignLabel, ComponentProperty.Create(dayConverterProperties[DayStyle.DayTextAlignPropertyName], dayObject), Designer.ReportItem, dayDescriptor);
         textAlignEditor.Margin = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, textAlignEditor.ControlInfo, 1);
         Controls.Add(textAlignEditor);
         //
         // formatEditor
         //
         TypedValueEditor verticalAlignEditor = new TypedValueEditor(ServiceProvider,
                                                                     Resources.CalendarSmartPanelVerticalAlignLabel, ComponentProperty.Create(dayConverterProperties[DayStyle.DayVerticalAlignPropertyName], dayObject), Designer.ReportItem, dayDescriptor);
         verticalAlignEditor.Margin = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, verticalAlignEditor.ControlInfo, 1);
         Controls.Add(verticalAlignEditor);
     }
 }
예제 #8
0
            private void InitializeComponent()
            {
                using (new SuspendLayoutTransaction(this))
                {
                    AutoSize = true;

                    //
                    // nameEditor
                    //
                    nameEditor = new TypedValueEditor(_serviceProvider,
                                                      Resources.ElementNameCaption, _designer.ReportItem, ReportItemDesignerBase.DataElementNamePropertyName);
                    Controls.Add(nameEditor);
                    //
                    // outputTitleLabel
                    //
                    LabelEx outputTitleLabel = new LabelEx(_serviceProvider);
                    outputTitleLabel.Text = Resources.OutputCaption;
                    Controls.Add(outputTitleLabel);
                    //
                    // autoOutputButton
                    //
                    if (hasAuto)
                    {
                        autoOutputButton                 = new RadioButtonEx(_serviceProvider);
                        autoOutputButton.Text            = Resources.AutoLabel;
                        autoOutputButton.Checked         = Output == DataElementOutput.Auto;
                        autoOutputButton.CheckedChanged += OutputChangedHandler;
                        autoOutputButton.Margin          = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, autoOutputButton.ControlInfo, 1);
                        Controls.Add(autoOutputButton);
                    }
                    //
                    // yesOutputButton
                    //
                    yesOutputButton                 = new RadioButtonEx(_serviceProvider);
                    yesOutputButton.Text            = Resources.YesLabel;
                    yesOutputButton.Checked         = Output == DataElementOutput.Output;
                    yesOutputButton.CheckedChanged += OutputChangedHandler;
                    yesOutputButton.Margin          = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, yesOutputButton.ControlInfo, 1);
                    Controls.Add(yesOutputButton);
                    //
                    // noOutputButton
                    //
                    noOutputButton                 = new RadioButtonEx(_serviceProvider);
                    noOutputButton.Text            = Resources.NoLabel;
                    noOutputButton.Checked         = Output == DataElementOutput.NoOutput;
                    noOutputButton.CheckedChanged += OutputChangedHandler;
                    noOutputButton.Margin          = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, noOutputButton.ControlInfo, 1);
                    Controls.Add(noOutputButton);
                }
            }
예제 #9
0
        private void InitializeControls()
        {
            using (new SuspendLayoutTransaction(this, true))
            {
                DataSetNameEditor dataSetEditor = new DataSetNameEditor(ServiceProvider, Designer.ReportItem);

                ControlGroupHeadingLabel eventSettingsLabel = new ControlGroupHeadingLabel(ServiceProvider);
                eventSettingsLabel.Text = Resources.CalendarSmartPanelEventSettingsLabel;
                eventSettingsLabel.Dock = DockStyle.Top;

                TypedValueEditor startDateEditor = new TypedValueEditor(ServiceProvider, Resources.CalendarSmartPanelStartDateLabel, Designer.ReportItem, "AppointmentStartDate");
                TypedValueEditor endDateEditor   = new TypedValueEditor(ServiceProvider, Resources.CalendarSmartPanelEndDateLabel, Designer.ReportItem, "AppointmentEndDate");
                TypedValueEditor valueEditor     = new TypedValueEditor(ServiceProvider, Resources.CalendarSmartPanelValueLabel, Designer.ReportItem, "AppointmentValue");

                _bottomControl = valueEditor;

                Controls.AddRange(new Control[]
                {
                    dataSetEditor, eventSettingsLabel, startDateEditor, endDateEditor, valueEditor
                });
            }
        }
예제 #10
0
        private void InitializeComponent()
        {
            // resolve property descriptor to a value
            object textStyleValue = _textStyleProperty.GetValue(_objectItem);
            // get inner properties using converter to get proper property type converters
            PropertyDescriptorCollection properties     = _textStyleProperty.Converter.GetProperties(textStyleValue);
            PropertyDescriptor           familyProp     = properties[DesignTextStyle.FontFamilyPropertyName];
            PropertyDescriptor           sizeProp       = properties[DesignTextStyle.FontSizePropertyName];
            PropertyDescriptor           styleProp      = properties[DesignTextStyle.FontStylePropertyName];
            PropertyDescriptor           weightProp     = properties[DesignTextStyle.FontWeightPropertyName];
            PropertyDescriptor           decorationProp = properties[DesignTextStyle.FontDecorationPropertyName];
            PropertyDescriptor           colorProp      = properties[DesignTextStyle.FontColorPropertyName];

            // panels
            HorizontalPanel mainPanel = new HorizontalPanel();
            VerticalPanel   panel1    = new VerticalPanel();
            VerticalPanel   panel2    = new VerticalPanel();

            using (new SuspendLayoutTransaction(this))
                using (new SuspendLayoutTransaction(mainPanel))
                    using (new SuspendLayoutTransaction(panel1))
                        using (new SuspendLayoutTransaction(panel2))
                        {
                            AutoSize           = true;
                            mainPanel.AutoSize = true;
                            panel1.AutoSize    = true;
                            panel2.AutoSize    = true;
                            mainPanel.Margin   = System.Windows.Forms.Padding.Empty;
                            panel1.Margin      = Utils.UpdateMarginByIndent(System.Windows.Forms.Padding.Empty, _serviceProvider, 1);
                            panel2.Margin      = System.Windows.Forms.Padding.Empty;

                            //
                            // headLabel
                            //
                            ControlGroupHeadingLabel headLabel = new ControlGroupHeadingLabel(_serviceProvider);
                            headLabel.Dock = DockStyle.Top;
                            headLabel.Text = Resources.CalendarSmartPanelFontLabel;
                            //
                            // familyEditor
                            //
                            familyEditor = new TypedValueEditor(_serviceProvider,
                                                                Resources.CalendarSmartPanelFontFamilyLabel, ComponentProperty.Create(familyProp, textStyleValue));
                            familyEditor.Validated += OnTextStyleEditorChanged;
                            familyEditor.Margin     = System.Windows.Forms.Padding.Empty;
                            //
                            // sizeEditor
                            //
                            sizeEditor = new TypedValueEditor(_serviceProvider,
                                                              Resources.CalendarSmartPanelFontSizeLabel, ComponentProperty.Create(sizeProp, textStyleValue));
                            sizeEditor.Validated += OnTextStyleEditorChanged;
                            sizeEditor.Margin     = System.Windows.Forms.Padding.Empty;
                            //
                            // styleEditor
                            //
                            styleEditor = new TypedValueEditor(_serviceProvider,
                                                               Resources.CalendarSmartPanelFontStyleLabel, ComponentProperty.Create(styleProp, textStyleValue));
                            styleEditor.Validated += OnTextStyleEditorChanged;
                            styleEditor.Margin     = System.Windows.Forms.Padding.Empty;
                            //
                            // colorEditor
                            //
                            colorEditor = new TypedValueEditor(_serviceProvider,
                                                               Resources.CalendarSmartPanelFontColorLabel, ComponentProperty.Create(colorProp, textStyleValue));
                            colorEditor.Validated += OnTextStyleEditorChanged;
                            colorEditor.Margin     = System.Windows.Forms.Padding.Empty;
                            //
                            // weight editor
                            //
                            weightEditor = new TypedValueEditor(_serviceProvider,
                                                                Resources.CalendarSmartPanelFontWeightLabel, ComponentProperty.Create(weightProp, textStyleValue));
                            weightEditor.Validated += OnTextStyleEditorChanged;
                            weightEditor.Margin     = System.Windows.Forms.Padding.Empty;
                            //
                            // decoration editor
                            //
                            decorationEditor = new TypedValueEditor(_serviceProvider,
                                                                    Resources.CalendarSmartPanelFontDecorationLabel, ComponentProperty.Create(decorationProp, textStyleValue));
                            decorationEditor.Validated += OnTextStyleEditorChanged;
                            decorationEditor.Margin     = System.Windows.Forms.Padding.Empty;
                            // panel1
                            //
                            panel1.Controls.Add(familyEditor);
                            panel1.Controls.Add(styleEditor);
                            panel1.Controls.Add(colorEditor);
                            //
                            // panel2
                            //
                            panel2.Controls.Add(sizeEditor);
                            panel2.Controls.Add(weightEditor);
                            panel2.Controls.Add(decorationEditor);

                            //
                            // mainPanel
                            //
                            mainPanel.Controls.Add(panel1);
                            mainPanel.Controls.Add(panel2);

                            Controls.Add(headLabel);
                            Controls.Add(mainPanel);
                        }

            isInitialized = true;
        }