Beispiel #1
0
 void RaiseResolveFileConflictEventIfHasSubscribers(object sender, ResolveFileConflictEventArgs e)
 {
     if (ResolveFileConflict != null)
     {
         guiSyncDispatcher(() => ResolveFileConflict(sender, e));
     }
 }
		void ResolveFileConflict(object sender, ResolveFileConflictEventArgs e)
		{
			if (UserPreviouslySelectedOverwriteAllOrIgnoreAll()) {
				e.Resolution = lastFileConflictResolution;
			} else {
				e.Resolution = fileConflictResolver.ResolveFileConflict(e.Message);
				lastFileConflictResolution = e.Resolution;
			}
		}
 public FileConflictResolution OnResolveFileConflict(string message)
 {
     if (ResolveFileConflict != null)
     {
         var eventArgs = new ResolveFileConflictEventArgs(message);
         ResolveFileConflict(this, eventArgs);
         return(eventArgs.Resolution);
     }
     return(FileConflictResolution.IgnoreAll);
 }
Beispiel #4
0
 void ResolveFileConflict(object sender, ResolveFileConflictEventArgs e)
 {
     if (UserPreviouslySelectedOverwriteAllOrIgnoreAll())
     {
         e.Resolution = lastFileConflictResolution;
     }
     else
     {
         e.Resolution = fileConflictResolver.ResolveFileConflict(e.Message);
         lastFileConflictResolution = e.Resolution;
     }
 }
 FileConflictResolution RaiseResolveFileConflict(string message)
 {
     var eventArgs = new ResolveFileConflictEventArgs(message);
     fakeEvents.Raise(events => events.ResolveFileConflict += null, fakeEvents, eventArgs);
     return eventArgs.Resolution;
 }
		void RaiseResolveFileConflictEventIfHasSubscribers (object sender, ResolveFileConflictEventArgs e)
		{
			if (ResolveFileConflict != null) {
				guiSyncDispatcher (() => ResolveFileConflict (sender, e));
			}
		}
 public FileConflictResolution OnResolveFileConflict(string message)
 {
     if (ResolveFileConflict != null) {
         var eventArgs = new ResolveFileConflictEventArgs(message);
         ResolveFileConflict(this, eventArgs);
         return eventArgs.Resolution;
     }
     return FileConflictResolution.IgnoreAll;
 }