Inheritance: EventArgs, ICancellableEvent
Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }