Example #1
0
 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);
     });
 }
Example #2
0
 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;
 }
Example #4
0
 private void TargetDevice_TextUpdated(object sender, UpdateTextEventArgs e)
 {
     this.lastText = e.Text;
 }