Beispiel #1
0
        private void OnConvert(object sender, EventArgs e)
        {
            _textFormatter.InputString = _view.GetText();

            if (ReferenceEquals(_textFormatter.InputString, null))
            {
                return;
            }

            _textFormatter.MinWordLength = _view.MinWordLength;

            _textFormatter.Convert(_textFormatter.InputString, _view.IsPunctuationDelete);

            _view.ShowResultText(_textFormatter.OutputString);
        }