static bool RaiseCheckingForUpdatesEvent( [NotNull] ref string updateUrl ) { var h = CheckingForUpdates; if( h == null ) return false; var e = new CheckingForUpdatesEventArgs( updateUrl ); h( null, e ); updateUrl = e.Url; return e.Cancel; }
static bool RaiseCheckingForUpdatesEvent( ref string updateUrl ) { var handler = CheckingForUpdates; if( handler == null ) return true; var e = new CheckingForUpdatesEventArgs( updateUrl ); handler( null, e ); updateUrl = e.Url; return !e.Cancel; }