Пример #1
0
        private void RaiseCounterChangedEvent()
        {
            CounterChangedEventArgs newEventArgs = new CounterChangedEventArgs(CounterControl.CounterChangedEvent, this);

            newEventArgs.Value = Counter;
            RaiseEvent(newEventArgs);
        }
 private void OnCounterChanged(object sender, CounterChangedEventArgs e)
 {
     //MessageBox.Show( "Counter is now " + e.Value );
 }