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