public bool ShowTextBoxDialog<T>( string title, string initialText, bool applyRules, bool restoreWindow, out T result )