/// <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(); } }
/// <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(); } }
/// <summary> /// Handles the ColorChanged event of MarkerColorPanelControl object. /// </summary> private void markerColorPanelControl_ColorChanged(object sender, EventArgs e) { if (!_seriesUiUpdating) { UpdateFocusedSeriesMarkerColor(); VisualEditor.OnDocumentChanged(); } }
/// <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(); } }
/// <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(); }
/// <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(); } }