Exemplo n.º 1
0
        private void OnTextChanged(object sender, EventArgs e)
        {
            var(name, expression) = CSharpToStreamBaseConverter.Convert(_textBox.Text);

            _name.Text       = name;
            _expression.Text = expression;
        }
Exemplo n.º 2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            var clipboard = Clipboard.GetText();

            if (string.IsNullOrEmpty(clipboard))
            {
                return;
            }

            var(name, _) = CSharpToStreamBaseConverter.Convert(clipboard);

            if (name.Length == 0)
            {
                return;
            }

            _textBox.Text = clipboard;
        }