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;
}