SIL.FieldWorks.IText.ConfigureInterlinDialog.GetBrush C# (CSharp) Method

GetBrush() private method

private GetBrush ( SIL.FieldWorks.IText.InterlinLineSpec spec, bool selected ) : Brush
spec SIL.FieldWorks.IText.InterlinLineSpec
selected bool
return System.Drawing.Brush
		private Brush GetBrush(InterlinLineSpec spec, bool selected)
		{
			Brush textBrush = SystemBrushes.ControlText;
			if (selected)
			{
				textBrush = SystemBrushes.HighlightText;
			}
			else
			{
				textBrush = new SolidBrush(m_choices.LabelColorFor(spec));
			}
			return textBrush;
		}