protected void NotifyItemCopied( ItemsEventArgs e ) { ItemCopied( this, e ); }
void SortingAlgorythm_ItemsSwaped( object sender, ItemsEventArgs e ) { #region Simulate Debug if( _isPause || _autoBlockAfterOneOperation ) _manualResetEvent.WaitOne(); #endregion _swaps++; this.LabelSwaps.Invoke( (MethodInvoker) ( () => this.LabelSwaps.Text = string.Format( "{0}", _swaps ) ) ); this.BarChart.Invoke ( (MethodInvoker) ( () => { ResetColors(); this.BarChart.GraphPane.CurveList[ 0 ].Points[ e.I ].Y = e.Ivalue; this.BarChart.GraphPane.CurveList[ 0 ].Points[ e.J ].Y = e.Jvalue; this.BarChart.GraphPane.CurveList[ 0 ].Points[ e.I ].Z = 3; this.BarChart.GraphPane.CurveList[ 0 ].Points[ e.J ].Z = 1; this.BarChart.GraphPane.AxisChange(); this.BarChart.Refresh(); } ) ); Thread.Sleep( _delay ); #region Simulate Debug if( _autoBlockAfterOneOperation ) _manualResetEvent.Reset(); #endregion }
protected void NotifyItemsCompared( ItemsEventArgs e ) { ItemsCompared( this, e ); }