/// <summary> /// Raises the <see cref="E:NameReferenceChanged"/> event. /// </summary> /// <param name="e">The <see cref="NameReferenceChangedEventArgs"/> instance containing the event data.</param> void INameController.OnNameReferenceChanged(NameReferenceChangedEventArgs e) { if (!IsSuspended) { NameReferenceChanged?.Invoke(this, e); } }
/// <summary> /// Updates the ChartArea alignment references to another chart areas. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="Charting.NameReferenceChangedEventArgs"/> instance containing the event data.</param> internal void ChartAreaNameReferenceChanged(object sender, NameReferenceChangedEventArgs e) { foreach (ChartArea chartArea in this) { if (chartArea.AlignWithChartArea == e.OldName) { chartArea.AlignWithChartArea = e.NewName; } } }