public void ShowMessageBox(object sender, UpdateTextEventArgs e) { // Use Invoke() to make sure the UI interaction happens on the UI // thread...just in case this delegate is invoked on another thread. Invoke((MethodInvoker) delegate { MessageBox.Show(e.Text); }); }
private void UpdateTextChanged(object sender, UpdateTextEventArgs e) { this.Invoke(this.TextBoxDelegate, new object[] { e.Text }); }
private void targetDevice_TextUpdated(object sender, UpdateTextEventArgs e) { this.text = e.Text; base.OnPropertyChanged(this, "Text"); this.CursorPosition = this.text.Length; }
private void TargetDevice_TextUpdated(object sender, UpdateTextEventArgs e) { this.lastText = e.Text; }