// Returns false if cancelled protected static bool RaiseBeginningEvent( DrawOperation op ) { var h = Beginning; if( h == null ) return true; var e = new DrawOperationBeginningEventArgs( op ); h( null, e ); return !e.Cancel; }
protected static bool RaiseBeginningEvent( DrawOperation op ) { var e = new DrawOperationBeginningEventArgs( op ); BeginningEvent.Raise( e ); return !e.Cancel; }