Ejemplo n.º 1
0
 /// <summary>
 /// Handles the TextChanged event of TitleTextBox object.
 /// </summary>
 private void titleTextBox_TextChanged(object sender, EventArgs e)
 {
     if (!_isUiUpdating)
     {
         FocusedChart.Title = titleTextBox.Text;
         VisualEditor.OnDocumentChanged();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles the ValueChanged event of SeriesMarkerSizeNumericUpDown object.
        /// </summary>
        private void seriesMarkerSizeNumericUpDown_ValueChanged(object sender, EventArgs e)
        {
            if (!_seriesUiUpdating)
            {
                FocusedSeries.Marker.Size = (byte)seriesMarkerSizeNumericUpDown.Value;

                VisualEditor.OnDocumentChanged();
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Handles the ColorChanged event of MarkerColorPanelControl object.
        /// </summary>
        private void markerColorPanelControl_ColorChanged(object sender, EventArgs e)
        {
            if (!_seriesUiUpdating)
            {
                UpdateFocusedSeriesMarkerColor();

                VisualEditor.OnDocumentChanged();
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Handles the SelectedIndexChanged event of SeriesMarkerStyleComboBox object.
        /// </summary>
        private void seriesMarkerStyleComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!_seriesUiUpdating)
            {
                FocusedSeries.Marker.Style = (OpenXmlDocumentChartMarkerStyle)seriesMarkerStyleComboBox.SelectedItem;

                UpdateFocusedSeriesMarkerColor();

                VisualEditor.OnDocumentChanged();
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Called when chart data is changed.
        /// </summary>
        private void OnChartDataChanged()
        {
            if (_isUiUpdating)
            {
                return;
            }

            // set chart data
            FocusedChart.ChartData.SetFromDataTable(GetFocusedDataTable());

            // notify visual editor that DOCX document with chart is changed
            VisualEditor.OnDocumentChanged();
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Handles the ColorChanged event of DataPointColorPanelControl object.
        /// </summary>
        private void dataPointColorPanelControl_ColorChanged(object sender, EventArgs e)
        {
            if (!_seriesUiUpdating)
            {
                if (FocusedDataPoint.ShapeProperties.FillColor.HasValue)
                {
                    FocusedDataPoint.ShapeProperties.FillColor = dataPointColorPanelControl.Color;
                }
                if (FocusedDataPoint.ShapeProperties.OutlineColor.HasValue)
                {
                    FocusedDataPoint.ShapeProperties.OutlineColor = dataPointColorPanelControl.Color;
                }

                VisualEditor.OnDocumentChanged();
            }
        }