SIL.FieldWorks.IText.FocusBoxController.OnJoinWords C# (CSharp) Method

OnJoinWords() public method

Note: Assume we are in the OnDisplayShowLinkWords is true context.
public OnJoinWords ( object arg ) : bool
arg object
return bool
		public bool OnJoinWords(object arg)
		{
			var cmd = (ICommandUndoRedoText)arg;
			UndoableUnitOfWorkHelper.Do(cmd.UndoText, cmd.RedoText, Cache.ActionHandlerAccessor,
				() =>
					{
						SelectedOccurrence.MakePhraseWithNextWord();
						if (InterlinDoc != null)
						{
							InterlinDoc.RecordGuessIfNotKnown(SelectedOccurrence);
						}
					});
			InterlinWordControl.SwitchWord(SelectedOccurrence);
			UpdateButtonState();
			return true;
		}