protected void OnSomeEvent(SomeEventEventArgs e) { if (SomeEvent != null) { SomeEvent(this, e); } }
void source_SomeEvent(object sender, SomeEventEventArgs e) { MessageBox.Show("EventClientWEPV4UsingManager handles EventSource.SomeEvent"); }
/// <summary> /// Event handler for the SomeEvent event. /// </summary> void OnSomeEvent(object sender, SomeEventEventArgs e) { DeliverEvent(sender, e); }