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

UpdateButtonState() private method

private UpdateButtonState ( ) : void
return void
		private void UpdateButtonState()
		{
			// only update button state when we're fully installed.
			if (InterlinDoc == null || !InterlinDoc.IsFocusBoxInstalled)
				return;
			// we're fully installed, so update the buttons.
			if (ShowLinkWordsIcon)
			{
				btnLinkNextWord.Visible = true;
				btnLinkNextWord.Enabled = true;
			}
			else
			{
				btnLinkNextWord.Visible = false;
				btnLinkNextWord.Enabled = false;
			}

			if (ShowBreakPhraseIcon)
			{
				btnBreakPhrase.Visible = true;
				btnBreakPhrase.Enabled = true;
			}
			else
			{
				btnBreakPhrase.Visible = false;
				btnBreakPhrase.Enabled = false;
			}
			UpdateButtonState_Undo();
			// LT-11406: Somehow JoinWords (and BreakPhrase) leaves the selection elsewhere,
			// this should make it select the default location.
			m_mediator.IdleQueue.Add(IdleQueuePriority.Medium, MakeDefaultSelection);

		}