private UndoRedoApproveAnalysis AddUndoRedoAction(AnalysisOccurrence currentAnnotation, AnalysisOccurrence newAnnotation)
 {
     if (Cache.ActionHandlerAccessor != null && currentAnnotation != newAnnotation)
     {
         var undoRedoAction = new UndoRedoApproveAnalysis(FocusBox.InterlinDoc,
                                                          currentAnnotation, newAnnotation);
         Cache.ActionHandlerAccessor.AddAction(undoRedoAction);
         return(undoRedoAction);
     }
     return(null);
 }
Exemple #2
0
		internal UndoRedoApproveAnalysis AddUndoRedoAction(int hvoCurrentAnnotation, int hvoNewAnnotation)
		{
			if (Cache.ActionHandlerAccessor != null && hvoCurrentAnnotation != hvoNewAnnotation)
			{
				UndoRedoApproveAnalysis undoRedoAction = new UndoRedoApproveAnalysis(this,
					hvoCurrentAnnotation, hvoNewAnnotation);
				Cache.ActionHandlerAccessor.AddAction(undoRedoAction);
				return undoRedoAction;
			}
			return null;
		}
			private UndoRedoApproveAnalysis AddUndoRedoAction(AnalysisOccurrence currentAnnotation, AnalysisOccurrence newAnnotation)
			{
				if (Cache.ActionHandlerAccessor != null && currentAnnotation != newAnnotation)
				{
					var undoRedoAction = new UndoRedoApproveAnalysis(FocusBox.InterlinDoc,
						currentAnnotation, newAnnotation);
					Cache.ActionHandlerAccessor.AddAction(undoRedoAction);
					return undoRedoAction;
				}
				return null;
			}