/// <summary> /// Convenience method for getting the text to be displayed on the button /// </summary> /// <param name="button">The button which the text will be displayed on</param> /// <returns>The text that should be shown on the button</returns> public static String GetText(LetterButton button) { if (button.IsAddLetter) { return("+"); } String text = LetterUtil.ConvertToString(button.SelectedLetter); switch (button.Restriction) { case PositionRestriction.START: text += "-"; break; case PositionRestriction.END: text = "-" + text; break; } return(text); }