Exemple #1
0
		/// <summary>
		/// Note: Assume we are in the OnDisplayShowLinkWords is true context.
		/// </summary>
		public bool OnJoinWords(object cmd)
		{
			// For now, suppress Undo/Redo since we're having difficulty
			// refreshing the Words record lists appropriately.
			// 1) Merge the current annotation with next twfic.
			// Since this action may irreversably overlap with current undo actions, clear the undo stack.
			//ITextStrings.ksUndoLinkWords; ITextStrings.ksRedoLinkWords;
			using (UndoRedoCommandHelper undoRedoHelper = new UndoRedoCommandHelper(Cache, cmd as Command, false, true))
			{
				// any changes in the sandbox should be ignored. we don't want to try to save it.
				using (SegmentFormsUpdateHelper sfuh = new SegmentFormsUpdateHelper(this))
				{
					sfuh.MergeAdjacentSegmentForms();
				}
			}
			return true;
		}