Esempio n. 1
0
        private void ButtonMatch_Click(object sender, RoutedEventArgs e)
        {
            _vm.Init(GetOptions());
            var match = _vm.Match();

            if (match?.Success ?? false)
            {
                TextBox_Input.Focus();
                TextBox_Input.Select(match.Index, match.Length);
            }
        }
Esempio n. 2
0
 private void ButtonReset_Click(object sender, RoutedEventArgs e)
 {
     _vm.Reset();
     TextBox_Input.Select(0, 0);
 }