private static bool RaiseCheckingForUpdatesEvent( 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; }