상속: EventArgs, ICancellableEvent
예제 #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;
 }
예제 #2
0
파일: Updater.cs 프로젝트: fragmer/fCraft
 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;
 }