Esempio n. 1
0
        private void OnCommandLineTextBoxTextChanged(object sender, WpfTextChangedEventArgs e)
        {
            // If the update is being made by the control for the purpose of displaying a message
            // then we do not want or need to respond to this event 
            if (_inCommandLineUpdate)
            {
                return;
            }

            if (InPasteWait)
            {
                UpdateForPasteWait(e);
                return;
            }

            // If we are in an edit mode make sure the user didn't delete the command prefix 
            // from the edit box 
            var command = _margin.CommandLineTextBox.Text ?? "";
            var prefixChar = GetPrefixChar(_editKind);
            if (prefixChar != null)
            {
                bool update = false;
                if (String.IsNullOrEmpty(command))
                {
                    command = prefixChar.Value.ToString();
                    update = true;
                }

                if (command[0] != prefixChar.Value)
                {
                    command = prefixChar.Value.ToString() + command;
                    update = true;
                }

                if (update)
                {
                    UpdateCommandLine(command);
                }
            }

            UpdateVimBufferStateWithCommandText(command);
        }
Esempio n. 2
0
 private void HeliosTextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
 }
 private void Field_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e) => validateAllFields();
Esempio n. 4
0
 private void FilterTextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     FillTable(FilterTextBox.Text);
 }
Esempio n. 5
0
 private void Name_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     name = Name.Text;
     TextChange();
 }
Esempio n. 6
0
 /// <summary>
 /// Method generate for TextBoxOutput_TextChanged event.
 /// </summary>
 private void TextBoxOutput_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
 }
Esempio n. 7
0
 private void OnOutputTextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     OutputTextBox.ScrollToEnd();
 }
 private void TxtFolders_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     string[] rows = TxtFolders.Text.Split(new char[] { '\r', '\n' }, System.StringSplitOptions.RemoveEmptyEntries);
 }
Esempio n. 9
0
 private void TextListener(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     infoBox.ScrollToEnd();
 }
 private void TextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     GenQr(TextBox.Text);
 }
Esempio n. 11
0
 private void Cmd_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     AutoTip(cmd.Text);
 }
Esempio n. 12
0
 private void txtBoxPinName_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
 }
 private void TbxSearch_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     InitSearchItems();
 }
Esempio n. 14
0
 void PhoneTextBoxOnTextChanged(object sender, System.Windows.Controls.TextChangedEventArgs textChangedEventArgs)
 {
     ((IElementController)Element).SetValueFromRenderer(SearchBar.TextProperty, Control.Text);
 }
Esempio n. 15
0
 private void CommandNameFilterTextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     this.RefreshList();
 }
Esempio n. 16
0
 private void tbCommLog_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     tbCommLog.ScrollToEnd();
 }
 private void FilterTextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     // the filter box has changed.
 }
 void _mask_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     _maskedTextBox.Value = null;
 }
 private void cmBName_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     DisplayWebResourceName();
 }
Esempio n. 20
0
 private void folder_select_text_box_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
 }
Esempio n. 21
0
 private void LibBoxTextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     HasError = LibNameInputValidator(LibBox.Text);   // true=name collision
 }
Esempio n. 22
0
 private void ItemSearchTextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     searchTimer.Stop();
     searchTimer.Start();
 }
Esempio n. 23
0
 private void TB_numPages_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     numberOfImagesToScroll = Convert.ToInt32(TB_numImages.Text);
 }
Esempio n. 24
0
 private void FFBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     Properties.Settings.Default.FFPath = FFBox.Text;
     Properties.Settings.Default.Save();
 }
Esempio n. 25
0
 private void operadorTextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     comprobarValoresValidos();
 }
Esempio n. 26
0
 private void TxtInput_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     AutoTip(txtInput.Text);
 }
Esempio n. 27
0
 private void irfuFocus(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     irfu.Text = "";
 }
Esempio n. 28
0
 private void AppsFilter_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e) => _appsViewSource.View.Refresh();
 private void _logText_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
 }
 void FilterTextBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     CollectionView.Refresh();
     SelectFirst();
 }
Esempio n. 31
0
        private void UpdateForPasteWait(WpfTextChangedEventArgs e)
        {
            Debug.Assert(InPasteWait);

            var command = _margin.CommandLineTextBox.Text ?? "";
            if (e.Changes.Count == 1 && command.Length > 0)
            {
                var change = e.Changes.First();
                if (change.AddedLength == 1)
                {
                    // If we are in a paste wait context then attempt to complete it by passing on the 
                    // typed char to _vimBuffer.  This will process it as the register
                    var c = command[change.Offset];
                    var keyInput = KeyInputUtil.CharToKeyInput(c);
                    _vimBuffer.Process(keyInput);

                    // Now we need to update the command line.  During edits the controller is responsible
                    // for manually updating the command line state.  Also we have to keep the caret postion
                    // correct
                    var name = RegisterName.OfChar('c');
                    if (name.IsSome())
                    {
                        var toPaste = _vimBuffer.GetRegister(name.Value).StringValue;
                        var builder = new StringBuilder();
                        builder.Append(command, 0, change.Offset);
                        builder.Append(toPaste);
                        builder.Append(command, change.Offset + 2, command.Length - (change.Offset + 2));
                        _margin.CommandLineTextBox.Text = builder.ToString();
                        _margin.CommandLineTextBox.Select(change.Offset + toPaste.Length, 0);
                    }

                    return;
                }
            }

            // The buffer was in a paste wait but the UI isn't in sync for completing
            // the operation.  Just pass Escape down to the buffer so it will cancel out
            // of paste wait and go back to a known state
            _vimBuffer.Process(KeyInputUtil.EscapeKey);
        }
Esempio n. 32
0
 private void text_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     enableOk();
 }