示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <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;
         }
     }
 }