コード例 #1
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _lBinWidth  = new LabelEx("Bin Width :");
            _udBinWidth = new NumericUpDownEx()
            {
                Minimum = (decimal)0.1, Maximum = 2, Increment = (decimal)0.1, DecimalPlaces = 1
            };
            _udBinWidth.ValueChanged += (s, e) => { _histogramSeries.BinWidth = (double)_udBinWidth.Value; };

            _cbAppearance       = ControlFactory.EnumBasedCombo(typeof(HistogramAppearance), "Appearance");
            _cbAppearance.Width = 160;
            _cbAppearance.SelectedIndexChanged += (s, e) => { _histogramSeries.HistogramAppearance = (HistogramAppearance)Enum.Parse(typeof(HistogramAppearance), _cbAppearance.SelectedItem.ToString()); };

            _chbNormalCurve = new CheckBoxEx("Normal Curve");
            _chbNormalCurve.CheckedChanged += (s, e) => { _histogramSeries.NormalCurve.Visible = _chbNormalCurve.Checked; };

            _chbCumulative = new CheckBoxEx("Cumulative");
            _chbCumulative.CheckedChanged += (s, e) => { _histogramSeries.CumulativeMode = _chbCumulative.Checked; };

            this.pnlControls.Controls.Add(_lBinWidth);
            this.pnlControls.Controls.Add(_udBinWidth);
            this.pnlControls.Controls.Add(_cbAppearance);
            this.pnlControls.Controls.Add(_chbNormalCurve);
            this.pnlControls.Controls.Add(_chbCumulative);
        }
コード例 #2
0
        protected override void InitializeControls()
        {
            this.Chart = new C1.Win.Chart.TreeMap()
            {
                Dock = DockStyle.Fill
            };

            _cbChartType = ControlFactory.EnumBasedCombo(typeof(TreeMapType), "Chart Type");
            _cbChartType.SelectedIndexChanged += (s, e) => (this.Chart as C1.Win.Chart.TreeMap).ChartType = (TreeMapType)Enum.Parse(typeof(TreeMapType), _cbChartType.SelectedItem.ToString());

            _cbPalette = ControlFactory.EnumBasedCombo(typeof(Palette), "Palette");
            _cbPalette.SelectedIndexChanged += (s, e) => (this.Chart as C1.Win.Chart.TreeMap).Palette = (Palette)Enum.Parse(typeof(Palette), _cbPalette.SelectedItem.ToString());

            _chbLabel = new CheckBoxEx("Labels")
            {
                Checked = true
            };
            _chbLabel.CheckedChanged += (s, e) => (this.Chart as C1.Win.Chart.TreeMap).DataLabel.Position = _chbLabel.Checked ? LabelPosition.Center : LabelPosition.None;

            _lMaxDepth  = new LabelEx("MaxDepth");
            _udMaxDepth = new NumericUpDownEx {
                Minimum = 1, Maximum = 4, Increment = 1, Value = 2
            };
            _udMaxDepth.ValueChanged += (s, e) => (this.Chart as C1.Win.Chart.TreeMap).MaxDepth = (int)_udMaxDepth.Value;

            this.pnlControls.Controls.Add(_cbChartType);
            this.pnlControls.Controls.Add(_cbPalette);
            this.pnlControls.Controls.Add(_chbLabel);
            this.pnlControls.Controls.Add(_lMaxDepth);
            this.pnlControls.Controls.Add(_udMaxDepth);
        }
コード例 #3
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _cbChartType = ChartControlFactory.BasicChartTypesCombo();
            _cbChartType.SelectedIndexChanged += (s, e) => this.flexChart1.ChartType = (ChartType)Enum.Parse(typeof(ChartType), _cbChartType.SelectedItem.ToString());

            _cbErrorAmount      = ControlFactory.EnumBasedCombo(typeof(ErrorAmount), "Error amount");
            _cbErrorAmount.Size = new Size(180, 21);
            _cbErrorAmount.SelectedIndexChanged += _cbErrorAmount_SelectedIndexChanged;

            _cbDirection = ControlFactory.EnumBasedCombo(typeof(ErrorBarDirection), "Direction");
            _cbDirection.SelectedIndexChanged += (s, e) => _bar.Direction = (ErrorBarDirection)Enum.Parse(typeof(ErrorBarDirection), _cbDirection.SelectedItem.ToString());

            _cbEndStyle = ControlFactory.EnumBasedCombo(typeof(ErrorBarEndStyle), "End style");
            _cbEndStyle.SelectedIndexChanged += (s, e) => _bar.EndStyle = (ErrorBarEndStyle)Enum.Parse(typeof(ErrorBarEndStyle), _cbEndStyle.SelectedItem.ToString());

            _chbRotate = new CheckBoxEx("Rotate");
            _chbRotate.CheckedChanged += (s, e) => this.flexChart1.Rotated = _chbRotate.Checked;

            this.pnlControls.Controls.Add(_cbChartType);
            this.pnlControls.Controls.Add(_cbErrorAmount);
            this.pnlControls.Controls.Add(_cbDirection);
            this.pnlControls.Controls.Add(_cbEndStyle);
            this.pnlControls.Controls.Add(_chbRotate);
        }
コード例 #4
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _cbChartType = ChartControlFactory.BasicChartTypesCombo();
            _cbChartType.SelectedIndexChanged += (s, e) => { flexChart1.ChartType = (ChartType)Enum.Parse(typeof(ChartType), _cbChartType.SelectedValue.ToString()); };

            _cbLabelPosition = ControlFactory.EnumBasedCombo(typeof(LabelPosition), "Label Position");
            _cbLabelPosition.SelectedIndexChanged += (s, e) => { flexChart1.DataLabel.Position = (LabelPosition)Enum.Parse(typeof(LabelPosition), _cbLabelPosition.SelectedValue.ToString()); };

            _chbLabelBorder = new CheckBoxEx("Label Border");
            _chbLabelBorder.CheckedChanged += (s, e) => { flexChart1.DataLabel.Border = _chbLabelBorder.Checked; };

            _chbConnectingLine = new CheckBoxEx("Connecting Line");
            _chbConnectingLine.CheckedChanged += (s, e) => { flexChart1.DataLabel.ConnectingLine = _chbConnectingLine.Checked; };

            _lLabelAngle  = new LabelEx("Angle :");
            _udLabelAngle = new NumericUpDownEx {
                Minimum = -90, Maximum = 90, Value = 0, Increment = 30, Width = 40
            };
            _udLabelAngle.ValueChanged += (s, e) => { flexChart1.DataLabel.Angle = (int)_udLabelAngle.Value; };

            this.pnlControls.Controls.Add(_cbChartType);
            this.pnlControls.Controls.Add(_cbLabelPosition);
            this.pnlControls.Controls.Add(_chbLabelBorder);
            this.pnlControls.Controls.Add(_chbConnectingLine);
            this.pnlControls.Controls.Add(_lLabelAngle);
            this.pnlControls.Controls.Add(_udLabelAngle);
        }
コード例 #5
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _lHeader = new LabelEx("Header:");
            _tHeader = new TextBoxEx {
                ForeColor = Color.DimGray, AutoSize = false
            };
            _tHeader.TextChanged += (s, e) => { flexChart1.Header.Content = _tHeader.Text; };

            _lFooter = new LabelEx("Footer:");
            _tFooter = new TextBoxEx {
                AutoSize = false, ForeColor = Color.DimGray
            };
            _tFooter.TextChanged += (s, e) => { flexChart1.Footer.Content = _tFooter.Text; };

            _cbAlignment = ControlFactory.EnumBasedCombo(typeof(HorizontalAlignment), "Alignment");
            _cbAlignment.SelectedIndexChanged += (s, e) =>
            {
                flexChart1.Header.HorizontalAlignment = flexChart1.Footer.HorizontalAlignment = (HorizontalAlignment)Enum.Parse(typeof(HorizontalAlignment), _cbAlignment.SelectedItem.ToString());
            };

            _chbBorder = new CheckBoxEx("Border");
            _chbBorder.CheckedChanged += (s, e) => { flexChart1.Header.Border = flexChart1.Footer.Border = _chbBorder.Checked; };

            this.pnlControls.Controls.Add(_lHeader);
            this.pnlControls.Controls.Add(_tHeader);
            this.pnlControls.Controls.Add(_lFooter);
            this.pnlControls.Controls.Add(_tFooter);
            this.pnlControls.Controls.Add(_cbAlignment);
            this.pnlControls.Controls.Add(_chbBorder);
        }
コード例 #6
0
ファイル: ShowHideControl.cs プロジェクト: radtek/Shopdrawing
 protected override FrameworkElement CreateShape()
 {
     Checkbox            = new CheckBoxEx();
     Checkbox.Checked   += result_Checked;
     Checkbox.Unchecked += result_Unchecked;
     return(Checkbox);
 }
コード例 #7
0
        protected override void InitializeControls()
        {
            this.Chart = new FlexRadar()
            {
                Dock = DockStyle.Fill
            };

            _cbChartType = ControlFactory.EnumBasedCombo(typeof(RadarChartType), "Chart Type");
            _cbChartType.SelectedIndexChanged += (s, e) => (this.Chart as FlexRadar).ChartType = (RadarChartType)Enum.Parse(typeof(RadarChartType), _cbChartType.SelectedItem.ToString());

            _cbStacking = ControlFactory.EnumBasedCombo(typeof(Stacking), "Stacking");
            _cbStacking.SelectedIndexChanged += (s, e) => (this.Chart as FlexRadar).Stacking = (Stacking)Enum.Parse(typeof(Stacking), _cbStacking.SelectedItem.ToString());

            _cbPalette = ControlFactory.EnumBasedCombo(typeof(Palette), "Palette");
            _cbPalette.SelectedIndexChanged += (s, e) => (this.Chart as FlexRadar).Palette = (Palette)Enum.Parse(typeof(Palette), _cbPalette.SelectedItem.ToString());

            _lStartAngle  = new LabelEx("Start Angle:");
            _udStartAngle = new NumericUpDownEx()
            {
                Minimum = -360, Maximum = 360, Increment = 45, Value = 0
            };
            _udStartAngle.ValueChanged += (s, e) => (this.Chart as FlexRadar).StartAngle = (double)_udStartAngle.Value;

            _chbReverse = new CheckBoxEx("Reverse");
            _chbReverse.CheckedChanged += (s, e) => (this.Chart as FlexRadar).Reversed = _chbReverse.Checked;

            this.pnlControls.Controls.Add(_cbChartType);
            this.pnlControls.Controls.Add(_cbStacking);
            this.pnlControls.Controls.Add(_cbPalette);
            this.pnlControls.Controls.Add(_lStartAngle);
            this.pnlControls.Controls.Add(_udStartAngle);
            this.pnlControls.Controls.Add(_chbReverse);
        }
コード例 #8
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;
        }
コード例 #9
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _chbByCategory = new CheckBoxEx("By Category");
            _chbByCategory.CheckedChanged += _chbByCategory_CheckedChanged;

            _cbMode = ControlFactory.EnumBasedCombo(typeof(HistogramBinning), "Mode");
            _cbMode.SelectedIndexChanged += _cbMode_SelectedIndexChanged;

            _chbOverflowBin = new CheckBoxEx("Overflow Bin");
            _chbOverflowBin.CheckedChanged += ChbOverflow_CheckedChanged;
            _tbOverflow = new TextBox()
            {
                Margin = new Padding(5), Width = 60, Enabled = false
            };
            _tbOverflow.KeyPress    += (s, e) => e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar);
            _tbOverflow.TextChanged += TbOverflow_TextChanged;

            _chbUnderflowBin = new CheckBoxEx("Underflow Bin");
            _chbUnderflowBin.CheckedChanged += ChbUnderflow_CheckedChanged;
            _tbUnderflow = new TextBox()
            {
                Margin = new Padding(5), Width = 60, Enabled = false
            };
            _tbUnderflow.KeyPress    += (s, e) => e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar);
            _tbUnderflow.TextChanged += TbUnderflow_TextChanged;

            _lBinWidth  = new LabelEx("Bin Width :");
            _tbBinWidth = new TextBox()
            {
                Margin = new Padding(5), Width = 60, Enabled = false
            };
            _tbBinWidth.KeyPress    += (s, e) => e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar);
            _tbBinWidth.TextChanged += TbBinWidth_TextChanged;

            _lBinNumbers  = new LabelEx("Number Of Bins :");
            _tbBinNumbers = new TextBox()
            {
                Margin = new Padding(5), Width = 60, Enabled = false
            };
            _tbBinNumbers.KeyPress    += (s, e) => e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar);
            _tbBinNumbers.TextChanged += TbBinNum_TextChanged;

            this.pnlControls.Controls.Add(_chbByCategory);
            this.pnlControls.Controls.Add(_cbMode);
            this.pnlControls.Controls.Add(_chbOverflowBin);
            this.pnlControls.Controls.Add(_tbOverflow);
            this.pnlControls.Controls.Add(_chbUnderflowBin);
            this.pnlControls.Controls.Add(_tbUnderflow);
            this.pnlControls.Controls.Add(_lBinWidth);
            this.pnlControls.Controls.Add(_tbBinWidth);
            this.pnlControls.Controls.Add(_lBinNumbers);
            this.pnlControls.Controls.Add(_tbBinNumbers);
        }
コード例 #10
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _chbPointsLegends = new CheckBoxEx("Display Series Points In Legends")
            {
                Checked = true
            };
            _chbPointsLegends.CheckedChanged += _chbPointsLegends_CheckedChanged;

            _chbLegendGroups = new CheckBoxEx("Display Legend Groups")
            {
                Checked = true
            };
            _chbLegendGroups.CheckedChanged += (s, e) =>
            {
                if (flexChart1.Series[0] == _customSeries)
                {
                    (_customSeries as SeriesWithPointLegendItems).ShowLegendGroups = _chbLegendGroups.Checked;
                    flexChart1.Invalidate();
                }
            };

            _chbLegendCustomIcons = new CheckBoxEx("Display Custom Icons")
            {
                Checked = true
            };
            _chbLegendCustomIcons.CheckedChanged += (s, e) =>
            {
                if (flexChart1.Series[0] == _customSeries)
                {
                    (_customSeries as SeriesWithPointLegendItems).ShowCustomIcons = _chbLegendCustomIcons.Checked;
                    flexChart1.Invalidate();
                }
            };

            _chbLegendNames = new CheckBoxEx("Display Legend Names")
            {
                Checked = true
            };
            _chbLegendNames.CheckedChanged += (s, e) =>
            {
                if (flexChart1.Series[0] == _customSeries)
                {
                    (_customSeries as SeriesWithPointLegendItems).ShowLegendNames = _chbLegendNames.Checked;
                    flexChart1.Invalidate();
                }
            };

            this.pnlControls.Controls.Add(_chbPointsLegends);
            this.pnlControls.Controls.Add(_chbLegendGroups);
            this.pnlControls.Controls.Add(_chbLegendCustomIcons);
            this.pnlControls.Controls.Add(_chbLegendNames);
        }
コード例 #11
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            //Init TopN ComboBox
            var comboBoxItems = new Queue <ComboBoxItem>();

            comboBoxItems.Enqueue(new ComboBoxItem {
                Name = "Show All"
            });
            for (int i = 1; i < 10; i++)
            {
                comboBoxItems.Enqueue(new ComboBoxItem {
                    Name = "Top-" + i, Value = i
                });
            }

            _cbTopN = new ComboBoxEx()
            {
                DataSource = comboBoxItems.ToArray(), DisplayMember = "Name", ValueMember = "Value"
            };
            _cbTopN.SelectedIndexChanged += (s, e) =>
            {
                if (_cbTopN.SelectedIndex == 0)
                {
                    flexChart1.Header.Content = "2017 : Top 10 Smartphone Vendors";
                    _filter.TopNEnabled       = false;
                    _chbShowOthers.Visible    = false;
                }

                else
                {
                    _filter.TopNEnabled        = true;
                    _chbShowOthers.Visible     = true;
                    _filter.TopNCount          = Convert.ToInt32(_cbTopN.SelectedValue);
                    flexChart1.Header.Content  = string.Format("2017 : Top {0} Smartphone Vendor", _filter.TopNCount);
                    flexChart1.Header.Content += _filter.TopNCount > 1 ? "s" : "";
                }
            };

            //Init ShowOthers CheckBox
            _chbShowOthers = new CheckBoxEx("Show Others")
            {
                Visible = false
            };
            _chbShowOthers.CheckedChanged += (s, e) =>
            {
                _filter.ShowOther = _chbShowOthers.Checked;
            };

            this.pnlControls.Controls.Add(_cbTopN);
            this.pnlControls.Controls.Add(_chbShowOthers);
        }
コード例 #12
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _flexPie = new FlexPie()
            {
                Dock = DockStyle.Fill, BackColor = Color.White
            };

            _cbGroupBy = new ComboBoxEx("Group By")
            {
                Width = 160, DataSource = _groups
            };
            _cbGroupBy.SelectedIndexChanged += _cbGroupBy_SelectedIndexChanged;

            _cbAggregateType       = ControlFactory.EnumBasedCombo(typeof(AggregateType), "Aggregate Type");
            _cbAggregateType.Width = 160;
            _cbAggregateType.SelectedIndexChanged += (s, e) =>
            {
                manager.AggregateType = (AggregateType)Enum.Parse(typeof(AggregateType), _cbAggregateType.SelectedValue.ToString());
                UpdateChart();
            };

            _cbChartType = new ComboBoxEx("Chart Type")
            {
                DataSource = _chartTypes
            };
            _cbChartType.SelectedIndexChanged += _cbChartType_SelectedIndexChanged;

            _chbEnableDrill = new CheckBoxEx("Enable DrillDown")
            {
                Checked = isDrillDownEnabled
            };
            _chbEnableDrill.CheckedChanged += (s, e) => { isDrillDownEnabled = _chbEnableDrill.Checked; };

            _pNavBar = new FlowLayoutPanel()
            {
                FlowDirection = FlowDirection.LeftToRight,
                AutoSize      = true,
                WrapContents  = false,
                Font          = new Font(this.Font.FontFamily, 11),
                Padding       = new Padding(5),
            };

            this.pnlControls.AutoSize = true;
            this.pnlControls.Controls.Add(_cbGroupBy);
            this.pnlControls.Controls.Add(_cbAggregateType);
            this.pnlControls.Controls.Add(_cbChartType);
            this.pnlControls.Controls.Add(_chbEnableDrill);
            this.pnlControls.Controls.Add(_pNavBar);
            this.pnlControls.SetFlowBreak(_chbEnableDrill, true);
        }
コード例 #13
0
        protected override void InitializeControls()
        {
            fpie = new FlexPie()
            {
                Dock = DockStyle.Fill
            };
            Chart = fpie;

            pnlControls.Controls.Add(new LabelEx("Inner Radius"));
            var numInnerRadius = new NumericUpDownEx()
            {
                Minimum = 0, Maximum = 0.9M, Increment = 0.1M, DecimalPlaces = 1, Value = 0
            };

            numInnerRadius.ValueChanged += (s, a) => fpie.InnerRadius = (double)numInnerRadius.Value;
            pnlControls.Controls.Add(numInnerRadius);

            pnlControls.Controls.Add(new LabelEx("Offset"));
            var numOffset = new NumericUpDownEx()
            {
                Minimum = 0, Maximum = 1, Increment = 0.1M, DecimalPlaces = 1, Value = 0
            };

            numOffset.ValueChanged += (s, a) => fpie.Offset = (double)numOffset.Value;
            pnlControls.Controls.Add(numOffset);

            var cbLabels = new CheckBoxEx("Show Labels");

            cbLabels.CheckedChanged += (s, a) => fpie.DataLabel.Position = cbLabels.Checked ? PieLabelPosition.Center : PieLabelPosition.None;
            pnlControls.SetFlowBreak(cbLabels, true);
            pnlControls.Controls.Add(cbLabels);

            var btnNew = new ButtonEx("New Data");

            btnNew.Click += (s, a) => NewData();
            pnlControls.Controls.Add(btnNew);

            var btnUpdate = new ButtonEx("Update");

            btnUpdate.Click += (s, a) => UpdateData();
            pnlControls.Controls.Add(btnUpdate);

            var btnAddPoint = new ButtonEx("+ Point");

            btnAddPoint.Click += (s, a) => AddPoint();
            pnlControls.Controls.Add(btnAddPoint);

            var btnRemovePoint = new ButtonEx("- Point");

            btnRemovePoint.Click += (s, a) => RemovePoint();
            pnlControls.Controls.Add(btnRemovePoint);
        }
コード例 #14
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            //Init ShowEquation CheckBox
            _chbShowEquation = new CheckBoxEx("Show Equation")
            {
                Checked = true
            };
            _chbShowEquation.CheckedChanged += (s, e) =>
            {
                _slEquationLabel.Visible = _chbShowEquation.Checked;
                //change ShowEquation label text
                if (_chbShowEquation.Checked)
                {
                    _slEquationLabel.Text = GetEquationString(_trendLine);
                }
            };
            //Init Fit Type ComboBox
            _cbFitType = ControlFactory.EnumBasedCombo(typeof(FitType), "FitType");
            _cbFitType.SelectedIndexChanged += (s, e) =>
            {
                _trendLine.FitType = (FitType)Enum.Parse(typeof(FitType), _cbFitType.SelectedItem.ToString());
                _lOrder.Visible    = _udOrder.Visible = _trendLine.FitType == FitType.Fourier || _trendLine.FitType == FitType.Polynom;
            };
            //Init Order
            _lOrder = new LabelEx("Order :")
            {
                Visible = false
            };
            _udOrder = new NumericUpDownEx()
            {
                Minimum = 2, Maximum = 9, Value = 4, Increment = 1, Visible = false
            };
            _udOrder.ValueChanged += (s, e) => { _trendLine.Order = (int)_udOrder.Value; };

            //Init Equation SuperLabel
            _slEquationLabel = new C1SuperLabel()
            {
                AutoSize = true, UseMnemonic = true
            };

            this.pnlControls.Controls.Add(_chbShowEquation);
            this.pnlControls.Controls.Add(_cbFitType);
            this.pnlControls.Controls.Add(_lOrder);
            this.pnlControls.Controls.Add(_udOrder);
            this.flexChart1.Controls.Add(_slEquationLabel);
        }
コード例 #15
0
ファイル: Filters.cs プロジェクト: wuhan890809/Playnite
        private void AssignBoolFilter(string bindBased, string text)
        {
            var check = new CheckBoxEx();

            check.Content = ResourceProvider.GetString(text);
            check.SetResourceReference(CheckBoxEx.StyleProperty, "FilterPanelCheckBoxEx");
            BindingTools.SetBinding(
                check,
                ToggleButton.IsCheckedProperty,
                mainModel.AppSettings.Fullscreen.FilterSettings,
                bindBased,
                BindingMode.TwoWay,
                UpdateSourceTrigger.PropertyChanged);
            PanelItemsHost.Children.Add(check);
        }
コード例 #16
0
        protected override void InitializeControls()
        {
            //Sunburst chart
            this.Chart = new C1.Win.Chart.Sunburst {
                Dock = DockStyle.Fill
            };

            //Inner Radius
            _lInnerRad = new LabelEx("Inner Radius");

            _udInnerRad = new NumericUpDownEx {
                Minimum = 0, Maximum = 1, Increment = (decimal)0.1, Value = 0, DecimalPlaces = 1
            };
            _udInnerRad.ValueChanged += (s, e) => (this.Chart as C1.Win.Chart.Sunburst).InnerRadius = (double)_udInnerRad.Value;

            //Offset
            _lOffset = new LabelEx("Offset");

            _udOffset = new NumericUpDownEx {
                Minimum = 0, Maximum = 1, Increment = (decimal)0.1, Value = 0, DecimalPlaces = 1
            };
            _udOffset.ValueChanged += (s, e) => (this.Chart as C1.Win.Chart.Sunburst).Offset = (double)_udOffset.Value;

            //Start Angle
            _lStartAngle = new LabelEx("Start Angle");

            _udStartAngle = new NumericUpDownEx {
                Minimum = 0, Maximum = 360, Increment = 45, Value = 0
            };
            _udStartAngle.ValueChanged += (s, e) => (this.Chart as C1.Win.Chart.Sunburst).StartAngle = (double)_udStartAngle.Value;

            //Palette
            _cbPalette = ControlFactory.EnumBasedCombo(typeof(Palette), "Palette");
            _cbPalette.SelectedIndexChanged += (s, e) => (this.Chart as C1.Win.Chart.Sunburst).Palette = (Palette)Enum.Parse(typeof(Palette), _cbPalette.SelectedItem.ToString());

            //Reversed
            _chbReverse = new CheckBoxEx("Reversed");
            _chbReverse.CheckedChanged += (s, e) => (this.Chart as C1.Win.Chart.Sunburst).Reversed = _chbReverse.Checked;

            this.pnlControls.Controls.Add(_lInnerRad);
            this.pnlControls.Controls.Add(_udInnerRad);
            this.pnlControls.Controls.Add(_lOffset);
            this.pnlControls.Controls.Add(_udOffset);
            this.pnlControls.Controls.Add(_lStartAngle);
            this.pnlControls.Controls.Add(_udStartAngle);
            this.pnlControls.Controls.Add(_cbPalette);
            this.pnlControls.Controls.Add(_chbReverse);
        }
コード例 #17
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _cbData = ControlFactory.EnumBasedCombo(typeof(DataShape), "Data");
            _cbData.SelectedIndexChanged += _cbData_SelectedIndexChanged;

            _cbOverlapping = ControlFactory.EnumBasedCombo(typeof(LabelOverlapping), "Overlapping");
            _cbOverlapping.SelectedIndexChanged += (s, e) => { flexChart1.DataLabel.Overlapping = (LabelOverlapping)Enum.Parse(typeof(LabelOverlapping), _cbOverlapping.SelectedValue.ToString()); };

            _chbLabelBorder = new CheckBoxEx("Label Border");
            _chbLabelBorder.CheckedChanged += (s, e) => { flexChart1.DataLabel.Border = _chbLabelBorder.Checked; };

            this.pnlControls.Controls.Add(_cbData);
            this.pnlControls.Controls.Add(_cbOverlapping);
            this.pnlControls.Controls.Add(_chbLabelBorder);
        }
コード例 #18
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _lLabelsGap  = new LabelEx("DataLabels Gap :");
            _udLabelsGap = new NumericUpDownEx {
                Minimum = 0, Maximum = 15, Increment = 1, Value = 10
            };
            _udLabelsGap.ValueChanged += (s, e) => { flexChart1.Invalidate(); };

            _chblabelBorder = new CheckBoxEx("Label Border");
            _chblabelBorder.CheckedChanged += (s, e) => { this.flexChart1.DataLabel.Border = _chblabelBorder.Checked; };

            this.pnlControls.Controls.Add(_lLabelsGap);
            this.pnlControls.Controls.Add(_udLabelsGap);
            this.pnlControls.Controls.Add(_chblabelBorder);
        }
コード例 #19
0
        protected override void InitializeControls()
        {
            var chart = new FlexChart();

            Chart = chart;

            cbX                       = new ComboBoxEx("X");
            cbX.DataSource            = new string[] { "Red", "Green", "Blue" };
            cbX.SelectedValueChanged += (se, ar) =>
            {
                chart.BeginUpdate();
                var sel = cbX.SelectedValue.ToString();
                chart.AxisX.Title = sel;
                chart.BindingX    = sel[0].ToString();
                chart.EndUpdate();
            };
            pnlControls.Controls.Add(cbX);

            cbY                       = new ComboBoxEx("Y");
            cbY.DataSource            = new string[] { "Red", "Green", "Blue" };
            cbY.SelectedValueChanged += (se, ar) =>
            {
                chart.BeginUpdate();
                var sel = cbY.SelectedValue.ToString();
                chart.AxisY.Title = sel;
                chart.Binding     = sel[0].ToString();
                UpdateSizeBinding();
                chart.EndUpdate();
            };
            pnlControls.Controls.Add(cbY);

            cbSize                       = new ComboBoxEx("Size");
            cbSize.DataSource            = new string[] { "None", "Red", "Green", "Blue" };
            cbSize.SelectedValueChanged += (se, ar) => UpdateSizeBinding();
            pnlControls.Controls.Add(cbSize);

            var cbGroup = new CheckBoxEx("Legend Groups");

            cbGroup.CheckedChanged += (s, a) => GroupSeries(cbGroup.Checked);
            pnlControls.Controls.Add(cbGroup);
        }
コード例 #20
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _cbPoints = new ComboBoxEx("Points")
            {
                DataSource = new int[] { 100, 1000, 10000, 50000 }
            };
            _cbPoints.SelectedIndexChanged += (s, e) => { flexChart1.DataSource = DataService.CreateDataPoints(x => x, _yFunc, int.Parse(_cbPoints.SelectedItem.ToString())); };

            _chbSVGOrDirectX = new CheckBoxEx("DirectX Rendering");
            _chbSVGOrDirectX.CheckedChanged += (s, e) => { flexChart1.RenderMode = _chbSVGOrDirectX.Checked ? RenderMode.DirectX : RenderMode.Default; };

            _lTimeElapsed = new LabelEx("Elapsed Time");
            _stopwatch    = new Stopwatch();

            this.pnlControls.Controls.Add(_cbPoints);
            this.pnlControls.Controls.Add(_chbSVGOrDirectX);
            this.pnlControls.Controls.Add(_lTimeElapsed);
        }
コード例 #21
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _cbChartType = new ComboBoxEx("Chart Type")
            {
                DataSource = _chartTypes
            };
            _cbChartType.SelectedIndexChanged += (s, e) => { flexChart1.ChartType = (ChartType)Enum.Parse(typeof(ChartType), _cbChartType.SelectedValue.ToString()); };

            _chbInterpolateNulls = new CheckBoxEx("Interpolate Nulls");
            _chbInterpolateNulls.CheckedChanged += (s, e) => { flexChart1.Options.InterpolateNulls = _chbInterpolateNulls.Checked; };

            _chbLegendToggle = new CheckBoxEx("Allow Legend Toggle");
            _chbLegendToggle.CheckedChanged += (s, e) => { flexChart1.LegendToggle = _chbLegendToggle.Checked; };

            this.pnlControls.Controls.Add(_cbChartType);
            this.pnlControls.Controls.Add(_chbInterpolateNulls);
            this.pnlControls.Controls.Add(_chbLegendToggle);
        }
コード例 #22
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _chbRelData = new CheckBoxEx("Relative Data");
            _chbRelData.CheckedChanged += (s, e) => _waterfall.RelativeData = _chbRelData.Checked;

            _chbConnLine = new CheckBoxEx("Connector Lines");
            _chbConnLine.CheckedChanged += (s, e) => _waterfall.ConnectorLines = _chbConnLine.Checked;

            _chbTotal = new CheckBoxEx("Show Total");
            _chbTotal.CheckedChanged += (s, e) => _waterfall.ShowTotal = _chbTotal.Checked;

            _chbInterTotals = new CheckBoxEx("Show Intermediate Totals");
            _chbInterTotals.CheckedChanged += (s, e) => _waterfall.ShowIntermediateTotal = _chbInterTotals.Checked;

            this.pnlControls.Controls.Add(_chbRelData);
            this.pnlControls.Controls.Add(_chbConnLine);
            this.pnlControls.Controls.Add(_chbTotal);
            this.pnlControls.Controls.Add(_chbInterTotals);
        }
コード例 #23
0
        protected override void InitializeControls()
        {
            flexPie = new FlexPie();
            Chart   = flexPie;

            var cbSorted = new CheckBoxEx()
            {
                Text = "Sorted", Checked = true
            };

            cbSorted.CheckedChanged += (s, e) => flexPie.DataSource = CreateData(NUM_POINTS, cbSorted.Checked);

            var bntNew = new ButtonEx()
            {
                Text = "New Data"
            };

            bntNew.Click += (s, e) => flexPie.DataSource = CreateData(NUM_POINTS, cbSorted.Checked);

            pnlControls.Controls.Add(bntNew);
            pnlControls.Controls.Add(cbSorted);
        }
コード例 #24
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            this.pnlControls.Height = 40;

            _bPageSetup        = new ButtonEx("Page Setup");
            _bPageSetup.Click += _bPageSetup_Click;

            _bPrinterSetup        = new ButtonEx("Printer Setup");
            _bPrinterSetup.Click += _bPrinterSetup_Click;

            _chbAxisScrollbar = new CheckBoxEx("Axis Scrollbar");
            _chbAxisScrollbar.CheckedChanged += (s, e) =>
            {
                if (_chbAxisScrollbar.Checked)
                {
                    _axisScrollbar            = new C1.Win.Chart.Interaction.AxisScrollbar(flexChart1.AxisX);
                    _axisScrollbar.UpperValue = _axisScrollbar.LowerValue + 10;
                }
                else
                {
                    _axisScrollbar.Dispose();
                    flexChart1.AxisX.Min = flexChart1.AxisY.Min = double.NaN;
                    flexChart1.AxisX.Max = flexChart1.AxisY.Max = double.NaN;
                }
            };

            _singlePagePrintControl = new SinglePagePrintControl(flexChart1)
            {
                Dock = DockStyle.Bottom
            };

            this.pnlControls.Controls.Add(_bPageSetup);
            this.pnlControls.Controls.Add(_bPrinterSetup);
            this.pnlControls.Controls.Add(_chbAxisScrollbar);
            this.Controls.Add(_singlePagePrintControl);
        }
コード例 #25
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            cbChartType = ChartControlFactory.BasicChartTypesCombo();
            cbChartType.SelectedIndexChanged += (s, e) =>
            {
                flexChart1.ChartType = (ChartType)Enum.Parse(typeof(ChartType), cbChartType.SelectedItem.ToString());
                UpdateStackGroupVisibility();
            };

            cbPalette = ControlFactory.EnumBasedCombo(typeof(Palette), "Palette");
            cbPalette.SelectedIndexChanged += (s, e) => flexChart1.Palette = (C1.Chart.Palette)Enum.Parse(typeof(C1.Chart.Palette), cbPalette.SelectedItem.ToString());


            cbStacked = ControlFactory.EnumBasedCombo(typeof(Stacking), "Stacking");
            cbStacked.SelectedIndexChanged += (s, e) =>
            {
                flexChart1.Stacking = (C1.Chart.Stacking)Enum.Parse(typeof(C1.Chart.Stacking), cbStacked.SelectedItem.ToString());
                UpdateStackGroupVisibility();
            };

            chbRotate = new CheckBoxEx("Rotate");
            chbRotate.CheckedChanged += (s, e) => flexChart1.Rotated = chbRotate.Checked;

            chbGroup = new CheckBoxEx("Stacked Group")
            {
                Visible = false
            };
            chbGroup.CheckedChanged += ChbGroup_CheckedChanged;

            pnlControls.Controls.Add(cbChartType);
            pnlControls.Controls.Add(cbPalette);
            pnlControls.Controls.Add(cbStacked);
            pnlControls.Controls.Add(chbRotate);
            pnlControls.Controls.Add(chbGroup);
        }
コード例 #26
0
        protected override void InitializeControls()
        {
            flexChart1 = new FlexChart();
            this.Chart = flexChart1;

            _cbQuartileCalc = ControlFactory.EnumBasedCombo(typeof(QuartileCalculation), "Quartile Calculation");
            _cbQuartileCalc.SelectedIndexChanged += _cbQuartileCalc_SelectedIndexChanged;
            _cbQuartileCalc.Size = new Size(210, 21);
            this.pnlControls.Controls.Add(_cbQuartileCalc);

            _chbMeanLine = new CheckBoxEx("Show mean line");
            _chbMeanLine.CheckedChanged += _chbMeanLine_CheckedChanged;
            this.pnlControls.Controls.Add(_chbMeanLine);

            _chbMean = new CheckBoxEx("Show mean")
            {
                Checked = true
            };
            _chbMean.CheckedChanged += _chbMean_CheckedChanged;
            this.pnlControls.Controls.Add(_chbMean);

            _chbOutlier = new CheckBoxEx("Show outlier")
            {
                Checked = true
            };
            _chbOutlier.CheckedChanged += _chbOutlier_CheckedChanged;
            this.pnlControls.Controls.Add(_chbOutlier);

            _chbInnerPoints = new CheckBoxEx("Show inner points");
            _chbInnerPoints.CheckedChanged += _chbInnerPoints_CheckedChanged;
            this.pnlControls.Controls.Add(_chbInnerPoints);

            _chbRotate = new CheckBoxEx("Rotate");
            _chbRotate.CheckedChanged += _chbRotate_CheckedChanged;
            this.pnlControls.Controls.Add(_chbRotate);
        }
コード例 #27
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Windows.Forms.ListViewGroup listViewGroup7 = new System.Windows.Forms.ListViewGroup("First Group", System.Windows.Forms.HorizontalAlignment.Left);
     System.Windows.Forms.ListViewGroup listViewGroup8 = new System.Windows.Forms.ListViewGroup("Second Group", System.Windows.Forms.HorizontalAlignment.Left);
     System.Windows.Forms.ListViewItem  listViewItem61 = new System.Windows.Forms.ListViewItem("Hello Item 1");
     System.Windows.Forms.ListViewItem  listViewItem62 = new System.Windows.Forms.ListViewItem("Hello Item 2");
     System.Windows.Forms.ListViewItem  listViewItem63 = new System.Windows.Forms.ListViewItem("Hello Item 3");
     System.Windows.Forms.ListViewItem  listViewItem64 = new System.Windows.Forms.ListViewItem("Hello Item 4");
     System.Windows.Forms.ListViewItem  listViewItem65 = new System.Windows.Forms.ListViewItem("Hello Item 5");
     System.Windows.Forms.ListViewItem  listViewItem66 = new System.Windows.Forms.ListViewItem("Hello Item 6");
     System.Windows.Forms.ListViewItem  listViewItem67 = new System.Windows.Forms.ListViewItem("Hello Item 7");
     System.Windows.Forms.ListViewItem  listViewItem68 = new System.Windows.Forms.ListViewItem("Hello Item 8");
     System.Windows.Forms.ListViewItem  listViewItem69 = new System.Windows.Forms.ListViewItem("Hello Item 9");
     System.Windows.Forms.ListViewItem  listViewItem70 = new System.Windows.Forms.ListViewItem("Hello Item 10");
     System.Windows.Forms.ListViewItem  listViewItem71 = new System.Windows.Forms.ListViewItem("Hello Item 11");
     System.Windows.Forms.ListViewItem  listViewItem72 = new System.Windows.Forms.ListViewItem("Hello Item 12");
     System.Windows.Forms.ListViewItem  listViewItem73 = new System.Windows.Forms.ListViewItem("Hello Item 13");
     System.Windows.Forms.ListViewItem  listViewItem74 = new System.Windows.Forms.ListViewItem("Hello Item 14");
     System.Windows.Forms.ListViewItem  listViewItem75 = new System.Windows.Forms.ListViewItem("Hello Item 15");
     System.Windows.Forms.ListViewItem  listViewItem76 = new System.Windows.Forms.ListViewItem("Hello Item 16");
     System.Windows.Forms.ListViewItem  listViewItem77 = new System.Windows.Forms.ListViewItem("Hello Item 17");
     System.Windows.Forms.ListViewItem  listViewItem78 = new System.Windows.Forms.ListViewItem("Hello Item 18");
     System.Windows.Forms.ListViewItem  listViewItem79 = new System.Windows.Forms.ListViewItem("Hello Item 19");
     System.Windows.Forms.ListViewItem  listViewItem80 = new System.Windows.Forms.ListViewItem("Hello Item 20, Filler, Filler, Filler, Filler, Filler, Filler, Filler, Filler, Fi" +
                                                                                               "ller, Filler, Filler, Filler, Filler, Filler, Filler, Filler");
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlDialog));
     System.Windows.Forms.TreeNode treeNode70 = new System.Windows.Forms.TreeNode("Node1");
     System.Windows.Forms.TreeNode treeNode71 = new System.Windows.Forms.TreeNode("Node2");
     System.Windows.Forms.TreeNode treeNode72 = new System.Windows.Forms.TreeNode("Node3");
     System.Windows.Forms.TreeNode treeNode73 = new System.Windows.Forms.TreeNode("Node4");
     System.Windows.Forms.TreeNode treeNode74 = new System.Windows.Forms.TreeNode("Node5");
     System.Windows.Forms.TreeNode treeNode75 = new System.Windows.Forms.TreeNode("Node0", new System.Windows.Forms.TreeNode[] {
         treeNode70,
         treeNode71,
         treeNode72,
         treeNode73,
         treeNode74
     });
     System.Windows.Forms.TreeNode treeNode76 = new System.Windows.Forms.TreeNode("Node7");
     System.Windows.Forms.TreeNode treeNode77 = new System.Windows.Forms.TreeNode("Node8");
     System.Windows.Forms.TreeNode treeNode78 = new System.Windows.Forms.TreeNode("Node9");
     System.Windows.Forms.TreeNode treeNode79 = new System.Windows.Forms.TreeNode("Node10");
     System.Windows.Forms.TreeNode treeNode80 = new System.Windows.Forms.TreeNode("Node11");
     System.Windows.Forms.TreeNode treeNode81 = new System.Windows.Forms.TreeNode("Node12");
     System.Windows.Forms.TreeNode treeNode82 = new System.Windows.Forms.TreeNode("Node6", new System.Windows.Forms.TreeNode[] {
         treeNode76,
         treeNode77,
         treeNode78,
         treeNode79,
         treeNode80,
         treeNode81
     });
     System.Windows.Forms.TreeNode treeNode83 = new System.Windows.Forms.TreeNode("Node14");
     System.Windows.Forms.TreeNode treeNode84 = new System.Windows.Forms.TreeNode("Node15");
     System.Windows.Forms.TreeNode treeNode85 = new System.Windows.Forms.TreeNode("Node16");
     System.Windows.Forms.TreeNode treeNode86 = new System.Windows.Forms.TreeNode("Node17");
     System.Windows.Forms.TreeNode treeNode87 = new System.Windows.Forms.TreeNode("Node18");
     System.Windows.Forms.TreeNode treeNode88 = new System.Windows.Forms.TreeNode("Node19");
     System.Windows.Forms.TreeNode treeNode89 = new System.Windows.Forms.TreeNode("Node20");
     System.Windows.Forms.TreeNode treeNode90 = new System.Windows.Forms.TreeNode("Node21");
     System.Windows.Forms.TreeNode treeNode91 = new System.Windows.Forms.TreeNode("Node22, Filler, Filler, Filler, Filler, Filler, Filler, Filler, Filler, Filler, F" +
                                                                                  "iller, Filler, Filler, Filler, Filler, Filler, Filler");
     System.Windows.Forms.TreeNode treeNode92 = new System.Windows.Forms.TreeNode("Node13", new System.Windows.Forms.TreeNode[] {
         treeNode83,
         treeNode84,
         treeNode85,
         treeNode86,
         treeNode87,
         treeNode88,
         treeNode89,
         treeNode90,
         treeNode91
     });
     this.statusBarEx      = new System.Windows.Forms.StatusBarEx();
     this.customTabControl = new System.Windows.Forms.CustomTabControl();
     this.tabPage2         = new System.Windows.Forms.TabPage();
     this.dataGridViewEx   = new System.Windows.Forms.DataGridViewEx();
     this.Column1          = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.Column2          = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.tabPage1         = new System.Windows.Forms.TabPage();
     this.propertyGridEx   = new System.Windows.Forms.PropertyGridEx();
     this.groupBoxEx       = new System.Windows.Forms.GroupBoxEx();
     this.pictureBoxEx     = new System.Windows.Forms.PictureBoxEx();
     this.progressBarEx    = new System.Windows.Forms.ProgressBarEx();
     this.buttonEx3        = new System.Windows.Forms.ButtonEx();
     this.checkBoxEx4      = new System.Windows.Forms.CheckBoxEx();
     this.checkBoxEx3      = new System.Windows.Forms.CheckBoxEx();
     this.checkBoxEx2      = new System.Windows.Forms.CheckBoxEx();
     this.buttonEx         = new System.Windows.Forms.ButtonEx();
     this.checkBoxEx       = new System.Windows.Forms.CheckBoxEx();
     this.buttonEx2        = new System.Windows.Forms.ButtonEx();
     this.listBoxEx        = new System.Windows.Forms.ListBoxEx();
     this.listViewEx       = new System.Windows.Forms.ListViewEx();
     this.columnHeader     = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader1    = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.textBoxEx        = new System.Windows.Forms.TextBoxEx();
     this.treeViewEx       = new System.Windows.Forms.TreeViewEx();
     this.richTextBoxEx    = new System.Windows.Forms.RichTextBoxEx();
     this.customTabControl.SuspendLayout();
     this.tabPage2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEx)).BeginInit();
     this.groupBoxEx.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEx)).BeginInit();
     this.SuspendLayout();
     //
     // statusBarEx
     //
     this.statusBarEx.Location = new System.Drawing.Point(0, 769);
     this.statusBarEx.Name     = "statusBarEx";
     this.statusBarEx.Size     = new System.Drawing.Size(1132, 22);
     this.statusBarEx.TabIndex = 9;
     this.statusBarEx.Text     = "StatusBar";
     this.statusBarEx.UseTheme = true;
     //
     // customTabControl
     //
     this.customTabControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.customTabControl.Controls.Add(this.tabPage2);
     this.customTabControl.Controls.Add(this.tabPage1);
     //
     //
     //
     this.customTabControl.DisplayStyleProvider.BorderColor         = System.Drawing.SystemColors.ControlDark;
     this.customTabControl.DisplayStyleProvider.BorderColorHot      = System.Drawing.SystemColors.ControlDark;
     this.customTabControl.DisplayStyleProvider.BorderColorSelected = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(157)))), ((int)(((byte)(185)))));
     this.customTabControl.DisplayStyleProvider.CloserColor         = System.Drawing.Color.DarkGray;
     this.customTabControl.DisplayStyleProvider.FocusTrack          = true;
     this.customTabControl.DisplayStyleProvider.HotTrack            = true;
     this.customTabControl.DisplayStyleProvider.ImageAlign          = System.Drawing.ContentAlignment.MiddleLeft;
     this.customTabControl.DisplayStyleProvider.Opacity             = 1F;
     this.customTabControl.DisplayStyleProvider.Overlap             = 0;
     this.customTabControl.DisplayStyleProvider.Padding             = new System.Drawing.Point(6, 3);
     this.customTabControl.DisplayStyleProvider.Radius            = 2;
     this.customTabControl.DisplayStyleProvider.ShowTabCloser     = false;
     this.customTabControl.DisplayStyleProvider.TextColor         = System.Drawing.SystemColors.ControlText;
     this.customTabControl.DisplayStyleProvider.TextColorDisabled = System.Drawing.SystemColors.ControlDark;
     this.customTabControl.DisplayStyleProvider.TextColorSelected = System.Drawing.SystemColors.ControlText;
     this.customTabControl.HotTrack      = true;
     this.customTabControl.Location      = new System.Drawing.Point(413, 528);
     this.customTabControl.Name          = "customTabControl";
     this.customTabControl.SelectedIndex = 0;
     this.customTabControl.Size          = new System.Drawing.Size(711, 233);
     this.customTabControl.TabIndex      = 8;
     //
     // tabPage2
     //
     this.tabPage2.Controls.Add(this.dataGridViewEx);
     this.tabPage2.Location = new System.Drawing.Point(4, 23);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Size     = new System.Drawing.Size(703, 206);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "tabPage2";
     this.tabPage2.UseVisualStyleBackColor = true;
     //
     // dataGridViewEx
     //
     this.dataGridViewEx.AllowUserToAddRows          = false;
     this.dataGridViewEx.AutoSizeColumnsMode         = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
     this.dataGridViewEx.BorderColor                 = System.Drawing.SystemColors.ControlDark;
     this.dataGridViewEx.BorderStyle                 = System.Windows.Forms.BorderStyle.None;
     this.dataGridViewEx.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
     this.dataGridViewEx.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
         this.Column1,
         this.Column2
     });
     this.dataGridViewEx.Dock              = System.Windows.Forms.DockStyle.Fill;
     this.dataGridViewEx.Location          = new System.Drawing.Point(0, 0);
     this.dataGridViewEx.Name              = "dataGridViewEx";
     this.dataGridViewEx.RowHeadersVisible = false;
     this.dataGridViewEx.Size              = new System.Drawing.Size(703, 206);
     this.dataGridViewEx.TabIndex          = 0;
     this.dataGridViewEx.UseTheme          = true;
     //
     // Column1
     //
     this.Column1.HeaderText = "Column1";
     this.Column1.Name       = "Column1";
     //
     // Column2
     //
     this.Column2.HeaderText = "Column2";
     this.Column2.Name       = "Column2";
     //
     // tabPage1
     //
     this.tabPage1.Location = new System.Drawing.Point(4, 23);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage1.Size     = new System.Drawing.Size(703, 206);
     this.tabPage1.TabIndex = 2;
     this.tabPage1.Text     = "tabPage1";
     this.tabPage1.UseVisualStyleBackColor = true;
     //
     // propertyGridEx
     //
     this.propertyGridEx.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.propertyGridEx.LineColor      = System.Drawing.SystemColors.ControlDark;
     this.propertyGridEx.Location       = new System.Drawing.Point(822, 13);
     this.propertyGridEx.Name           = "propertyGridEx";
     this.propertyGridEx.Size           = new System.Drawing.Size(298, 506);
     this.propertyGridEx.TabIndex       = 7;
     this.propertyGridEx.ToolbarVisible = false;
     this.propertyGridEx.UseTheme       = true;
     //
     // groupBoxEx
     //
     this.groupBoxEx.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.groupBoxEx.BorderColor = System.Drawing.SystemColors.ControlDark;
     this.groupBoxEx.Controls.Add(this.pictureBoxEx);
     this.groupBoxEx.Controls.Add(this.progressBarEx);
     this.groupBoxEx.Controls.Add(this.buttonEx3);
     this.groupBoxEx.Controls.Add(this.checkBoxEx4);
     this.groupBoxEx.Controls.Add(this.checkBoxEx3);
     this.groupBoxEx.Controls.Add(this.checkBoxEx2);
     this.groupBoxEx.Controls.Add(this.buttonEx);
     this.groupBoxEx.Controls.Add(this.checkBoxEx);
     this.groupBoxEx.Controls.Add(this.buttonEx2);
     this.groupBoxEx.Location = new System.Drawing.Point(12, 523);
     this.groupBoxEx.Name     = "groupBoxEx";
     this.groupBoxEx.Size     = new System.Drawing.Size(396, 235);
     this.groupBoxEx.TabIndex = 6;
     this.groupBoxEx.TabStop  = false;
     this.groupBoxEx.Text     = "GroupBox";
     this.groupBoxEx.UseTheme = true;
     //
     // pictureBoxEx
     //
     this.pictureBoxEx.BorderColor = System.Drawing.SystemColors.ControlDark;
     this.pictureBoxEx.Location    = new System.Drawing.Point(221, 28);
     this.pictureBoxEx.Name        = "pictureBoxEx";
     this.pictureBoxEx.Size        = new System.Drawing.Size(153, 63);
     this.pictureBoxEx.TabIndex    = 13;
     this.pictureBoxEx.TabStop     = false;
     this.pictureBoxEx.UseTheme    = true;
     //
     // progressBarEx
     //
     this.progressBarEx.BorderColor = System.Drawing.SystemColors.ControlDark;
     this.progressBarEx.Location    = new System.Drawing.Point(25, 80);
     this.progressBarEx.Name        = "progressBarEx";
     this.progressBarEx.Size        = new System.Drawing.Size(175, 11);
     this.progressBarEx.TabIndex    = 12;
     this.progressBarEx.UseTheme    = true;
     this.progressBarEx.Value       = 40;
     //
     // buttonEx3
     //
     this.buttonEx3.DisabledBackColor = System.Drawing.SystemColors.Control;
     this.buttonEx3.DisabledTextColor = System.Drawing.SystemColors.ControlDark;
     this.buttonEx3.Enabled           = false;
     this.buttonEx3.Location          = new System.Drawing.Point(25, 104);
     this.buttonEx3.Name     = "buttonEx3";
     this.buttonEx3.Size     = new System.Drawing.Size(92, 30);
     this.buttonEx3.TabIndex = 11;
     this.buttonEx3.Text     = "Button3";
     this.buttonEx3.UseTheme = true;
     this.buttonEx3.UseVisualStyleBackColor = true;
     //
     // checkBoxEx4
     //
     this.checkBoxEx4.AutoSize          = true;
     this.checkBoxEx4.BorderColor       = System.Drawing.SystemColors.ControlDark;
     this.checkBoxEx4.DisabledTextColor = System.Drawing.SystemColors.ControlDark;
     this.checkBoxEx4.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.checkBoxEx4.Location          = new System.Drawing.Point(123, 51);
     this.checkBoxEx4.Name                    = "checkBoxEx4";
     this.checkBoxEx4.RightToLeft             = System.Windows.Forms.RightToLeft.Yes;
     this.checkBoxEx4.Size                    = new System.Drawing.Size(78, 17);
     this.checkBoxEx4.TabIndex                = 10;
     this.checkBoxEx4.Text                    = "Check Me4";
     this.checkBoxEx4.ThreeState              = true;
     this.checkBoxEx4.UseTheme                = true;
     this.checkBoxEx4.UseVisualStyleBackColor = false;
     //
     // checkBoxEx3
     //
     this.checkBoxEx3.AutoSize          = true;
     this.checkBoxEx3.BorderColor       = System.Drawing.SystemColors.ControlDark;
     this.checkBoxEx3.DisabledTextColor = System.Drawing.SystemColors.ControlDark;
     this.checkBoxEx3.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.checkBoxEx3.Location          = new System.Drawing.Point(123, 28);
     this.checkBoxEx3.Name                    = "checkBoxEx3";
     this.checkBoxEx3.RightToLeft             = System.Windows.Forms.RightToLeft.Yes;
     this.checkBoxEx3.Size                    = new System.Drawing.Size(78, 17);
     this.checkBoxEx3.TabIndex                = 9;
     this.checkBoxEx3.Text                    = "Check Me3";
     this.checkBoxEx3.ThreeState              = true;
     this.checkBoxEx3.UseTheme                = true;
     this.checkBoxEx3.UseVisualStyleBackColor = false;
     //
     // checkBoxEx2
     //
     this.checkBoxEx2.AutoSize          = true;
     this.checkBoxEx2.BorderColor       = System.Drawing.SystemColors.ControlDark;
     this.checkBoxEx2.DisabledTextColor = System.Drawing.SystemColors.ControlDark;
     this.checkBoxEx2.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.checkBoxEx2.Location          = new System.Drawing.Point(25, 51);
     this.checkBoxEx2.Name       = "checkBoxEx2";
     this.checkBoxEx2.Size       = new System.Drawing.Size(78, 17);
     this.checkBoxEx2.TabIndex   = 8;
     this.checkBoxEx2.Text       = "Check Me2";
     this.checkBoxEx2.ThreeState = true;
     this.checkBoxEx2.UseTheme   = true;
     this.checkBoxEx2.UseVisualStyleBackColor = false;
     //
     // buttonEx
     //
     this.buttonEx.DisabledBackColor = System.Drawing.SystemColors.Control;
     this.buttonEx.DisabledTextColor = System.Drawing.SystemColors.ControlDark;
     this.buttonEx.Location          = new System.Drawing.Point(25, 180);
     this.buttonEx.Name     = "buttonEx";
     this.buttonEx.Size     = new System.Drawing.Size(92, 30);
     this.buttonEx.TabIndex = 7;
     this.buttonEx.Text     = "Button1";
     this.buttonEx.UseTheme = true;
     this.buttonEx.UseVisualStyleBackColor = true;
     //
     // checkBoxEx
     //
     this.checkBoxEx.AutoSize          = true;
     this.checkBoxEx.BorderColor       = System.Drawing.SystemColors.ControlDark;
     this.checkBoxEx.DisabledTextColor = System.Drawing.SystemColors.ControlDark;
     this.checkBoxEx.FlatStyle         = System.Windows.Forms.FlatStyle.Flat;
     this.checkBoxEx.Location          = new System.Drawing.Point(25, 28);
     this.checkBoxEx.Name     = "checkBoxEx";
     this.checkBoxEx.Size     = new System.Drawing.Size(78, 17);
     this.checkBoxEx.TabIndex = 6;
     this.checkBoxEx.Text     = "Check Me1";
     this.checkBoxEx.UseTheme = true;
     this.checkBoxEx.UseVisualStyleBackColor = false;
     //
     // buttonEx2
     //
     this.buttonEx2.DisabledBackColor = System.Drawing.SystemColors.Control;
     this.buttonEx2.DisabledTextColor = System.Drawing.SystemColors.ControlDark;
     this.buttonEx2.Location          = new System.Drawing.Point(25, 142);
     this.buttonEx2.Name     = "buttonEx2";
     this.buttonEx2.Size     = new System.Drawing.Size(92, 30);
     this.buttonEx2.TabIndex = 5;
     this.buttonEx2.Text     = "Button2";
     this.buttonEx2.UseTheme = true;
     this.buttonEx2.UseVisualStyleBackColor = true;
     //
     // listBoxEx
     //
     this.listBoxEx.Anchor            = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.listBoxEx.BorderColor       = System.Drawing.SystemColors.ControlDark;
     this.listBoxEx.FormattingEnabled = true;
     this.listBoxEx.IntegralHeight    = false;
     this.listBoxEx.Location          = new System.Drawing.Point(553, 13);
     this.listBoxEx.Name     = "listBoxEx";
     this.listBoxEx.Size     = new System.Drawing.Size(261, 280);
     this.listBoxEx.TabIndex = 4;
     this.listBoxEx.UseTheme = true;
     //
     // listViewEx
     //
     this.listViewEx.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)));
     this.listViewEx.BorderColor = System.Drawing.SystemColors.ControlDark;
     this.listViewEx.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader,
         this.columnHeader1
     });
     this.listViewEx.GridLineColor = System.Drawing.SystemColors.Control;
     listViewGroup7.Header         = "First Group";
     listViewGroup7.Name           = "listViewGroup";
     listViewGroup8.Header         = "Second Group";
     listViewGroup8.Name           = "listViewGroup2";
     this.listViewEx.Groups.AddRange(new System.Windows.Forms.ListViewGroup[] {
         listViewGroup7,
         listViewGroup8
     });
     listViewItem61.Group = listViewGroup7;
     listViewItem62.Group = listViewGroup7;
     listViewItem63.Group = listViewGroup7;
     listViewItem64.Group = listViewGroup7;
     listViewItem65.Group = listViewGroup7;
     listViewItem66.Group = listViewGroup7;
     listViewItem67.Group = listViewGroup7;
     listViewItem68.Group = listViewGroup7;
     listViewItem69.Group = listViewGroup7;
     listViewItem70.Group = listViewGroup7;
     listViewItem71.Group = listViewGroup8;
     listViewItem72.Group = listViewGroup8;
     listViewItem73.Group = listViewGroup8;
     listViewItem74.Group = listViewGroup8;
     listViewItem75.Group = listViewGroup8;
     listViewItem76.Group = listViewGroup8;
     listViewItem77.Group = listViewGroup8;
     listViewItem78.Group = listViewGroup8;
     listViewItem79.Group = listViewGroup8;
     listViewItem80.Group = listViewGroup8;
     this.listViewEx.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
         listViewItem61,
         listViewItem62,
         listViewItem63,
         listViewItem64,
         listViewItem65,
         listViewItem66,
         listViewItem67,
         listViewItem68,
         listViewItem69,
         listViewItem70,
         listViewItem71,
         listViewItem72,
         listViewItem73,
         listViewItem74,
         listViewItem75,
         listViewItem76,
         listViewItem77,
         listViewItem78,
         listViewItem79,
         listViewItem80
     });
     this.listViewEx.Location  = new System.Drawing.Point(12, 301);
     this.listViewEx.Name      = "listViewEx";
     this.listViewEx.OwnerDraw = true;
     this.listViewEx.Size      = new System.Drawing.Size(396, 218);
     this.listViewEx.TabIndex  = 3;
     this.listViewEx.UseCompatibleStateImageBehavior = false;
     this.listViewEx.UseTheme = true;
     this.listViewEx.View     = System.Windows.Forms.View.Details;
     //
     // columnHeader
     //
     this.columnHeader.Text  = "Column1";
     this.columnHeader.Width = 277;
     //
     // columnHeader1
     //
     this.columnHeader1.Text  = "Column2";
     this.columnHeader1.Width = 98;
     //
     // textBoxEx
     //
     this.textBoxEx.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.textBoxEx.BorderColor = System.Drawing.SystemColors.ControlDark;
     this.textBoxEx.Location    = new System.Drawing.Point(282, 12);
     this.textBoxEx.Multiline   = true;
     this.textBoxEx.Name        = "textBoxEx";
     this.textBoxEx.Size        = new System.Drawing.Size(262, 281);
     this.textBoxEx.TabIndex    = 2;
     this.textBoxEx.Text        = resources.GetString("textBoxEx.Text");
     this.textBoxEx.UseTheme    = true;
     //
     // treeViewEx
     //
     this.treeViewEx.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                     | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.treeViewEx.BorderColor = System.Drawing.SystemColors.ControlDark;
     this.treeViewEx.Location    = new System.Drawing.Point(416, 301);
     this.treeViewEx.Name        = "treeViewEx";
     treeNode70.Name             = "Node1";
     treeNode70.Text             = "Node1";
     treeNode71.Name             = "Node2";
     treeNode71.Text             = "Node2";
     treeNode72.Name             = "Node3";
     treeNode72.Text             = "Node3";
     treeNode73.Name             = "Node4";
     treeNode73.Text             = "Node4";
     treeNode74.Name             = "Node5";
     treeNode74.Text             = "Node5";
     treeNode75.Name             = "Node0";
     treeNode75.Text             = "Node0";
     treeNode76.Name             = "Node7";
     treeNode76.Text             = "Node7";
     treeNode77.Name             = "Node8";
     treeNode77.Text             = "Node8";
     treeNode78.Name             = "Node9";
     treeNode78.Text             = "Node9";
     treeNode79.Name             = "Node10";
     treeNode79.Text             = "Node10";
     treeNode80.Name             = "Node11";
     treeNode80.Text             = "Node11";
     treeNode81.Name             = "Node12";
     treeNode81.Text             = "Node12";
     treeNode82.Name             = "Node6";
     treeNode82.Text             = "Node6";
     treeNode83.Name             = "Node14";
     treeNode83.Text             = "Node14";
     treeNode84.Name             = "Node15";
     treeNode84.Text             = "Node15";
     treeNode85.Name             = "Node16";
     treeNode85.Text             = "Node16";
     treeNode86.Name             = "Node17";
     treeNode86.Text             = "Node17";
     treeNode87.Name             = "Node18";
     treeNode87.Text             = "Node18";
     treeNode88.Name             = "Node19";
     treeNode88.Text             = "Node19";
     treeNode89.Name             = "Node20";
     treeNode89.Text             = "Node20";
     treeNode90.Name             = "Node21";
     treeNode90.Text             = "Node21";
     treeNode91.Name             = "Node22";
     treeNode91.Text             = "Node22, Filler, Filler, Filler, Filler, Filler, Filler, Filler, Filler, Filler, F" +
                                   "iller, Filler, Filler, Filler, Filler, Filler, Filler";
     treeNode92.Name = "Node13";
     treeNode92.Text = "Node13";
     this.treeViewEx.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
         treeNode75,
         treeNode82,
         treeNode92
     });
     this.treeViewEx.Size     = new System.Drawing.Size(398, 218);
     this.treeViewEx.TabIndex = 1;
     this.treeViewEx.UseTheme = true;
     //
     // richTextBoxEx
     //
     this.richTextBoxEx.BorderColor = System.Drawing.SystemColors.ControlDark;
     this.richTextBoxEx.Location    = new System.Drawing.Point(12, 12);
     this.richTextBoxEx.Name        = "richTextBoxEx";
     this.richTextBoxEx.Size        = new System.Drawing.Size(262, 281);
     this.richTextBoxEx.TabIndex    = 0;
     this.richTextBoxEx.Text        = resources.GetString("richTextBoxEx.Text");
     this.richTextBoxEx.UseTheme    = true;
     //
     // ControlDialog
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1132, 791);
     this.Controls.Add(this.statusBarEx);
     this.Controls.Add(this.customTabControl);
     this.Controls.Add(this.propertyGridEx);
     this.Controls.Add(this.groupBoxEx);
     this.Controls.Add(this.listBoxEx);
     this.Controls.Add(this.listViewEx);
     this.Controls.Add(this.textBoxEx);
     this.Controls.Add(this.treeViewEx);
     this.Controls.Add(this.richTextBoxEx);
     this.DoubleBuffered = true;
     this.MinimumSize    = new System.Drawing.Size(1000, 700);
     this.Name           = "ControlDialog";
     this.StartPosition  = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text           = "ControlDialog";
     this.customTabControl.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEx)).EndInit();
     this.groupBoxEx.ResumeLayout(false);
     this.groupBoxEx.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEx)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #28
0
        public SinglePagePrintControl(FlexChart flexChart)
        {
            InitializeComponent();
            this.FlexChart = flexChart;

            comboPrintScale          = ControlFactory.EnumBasedCombo(typeof(ChartPrinter.PrintScale), "PrintScale");
            comboPrintScale.Location = new Point(15, 17);
            labX = new LabelEx("X:")
            {
                Location = new Point(188, 17)
            };
            txtX = new TextBox()
            {
                Bounds = new Rectangle(211, 17, 50, 21)
            };
            labWidth = new LabelEx("Width:")
            {
                Location = new Point(280, 17)
            };
            txtWidth = new TextBox()
            {
                Bounds = new Rectangle(330, 17, 50, 21)
            };

            chkGrayScale = new CheckBoxEx("Use GrayScale")
            {
                Location = new Point(15, 65)
            };
            labY = new LabelEx("Y:")
            {
                Location = new Point(188, 65)
            };
            txtY = new TextBox()
            {
                Bounds = new Rectangle(211, 65, 50, 21)
            };
            labHeight = new LabelEx("Height")
            {
                Location = new Point(280, 65)
            };
            txtHeight = new TextBox()
            {
                Bounds = new Rectangle(330, 65, 50, 21)
            };

            chkPreview = new CheckBoxEx("Preview")
            {
                Location = new Point(15, 113), Checked = true
            };
            btnClear = new ButtonEx("Clear")
            {
                Bounds = new Rectangle(188, 113, 100, 25)
            };

            btnPrint = new ButtonEx("Print")
            {
                Bounds = new Rectangle(15, 160, 100, 25)
            };

            comboPrintScale.SelectedIndexChanged += (s, e) => { FlexChart.Header.Content = comboPrintScale.Text; };
            txtX.Validating      += NumerTextValidate;
            txtY.Validating      += NumerTextValidate;
            txtWidth.Validating  += NumerTextValidate;
            txtHeight.Validating += NumerTextValidate;
            btnPrint.Click       += btnPrint_Click;
            btnClear.Click       += btnClear_Click;

            this.Controls.Add(comboPrintScale);
            this.Controls.Add(labX);
            this.Controls.Add(txtX);
            this.Controls.Add(labWidth);
            this.Controls.Add(txtWidth);
            this.Controls.Add(chkGrayScale);
            this.Controls.Add(labY);
            this.Controls.Add(txtY);
            this.Controls.Add(labHeight);
            this.Controls.Add(txtHeight);
            this.Controls.Add(chkPreview);
            this.Controls.Add(btnClear);
            this.Controls.Add(btnPrint);
            DrawingRectangle         = new Rectangle(100, 200, 400, 400);
            FlexChart.Header.Content = "PrintScale: None";
        }