private void richTextBox1_TextChanged(object sender, EventArgs e) { if (MemoChange != null) { EditorArgs args = new EditorArgs(); args.TextString = textView.Buffer.Text; MemoChange(this, args); } }
/// <summary> /// The memo has been updated and now send the changed text to the model. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void richTextBox1_Leave(object sender, FocusOutEventArgs e) { if (MemoLeave != null) { EditorArgs args = new EditorArgs(); args.TextString = textView.Buffer.Text; MemoLeave(this, args); } }
/// <summary> /// The memo has been updated and now send the changed text to the model. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void richTextBox1_Leave(object sender, EventArgs e) { if (MemoUpdate != null) { EditorArgs args = new EditorArgs(); args.TextString = richTextBox1.Text; MemoUpdate(this, args); } }
private void RichTextBox1_TextChanged(object sender, EventArgs e) { try { if (MemoChange != null) { EditorArgs args = new EditorArgs(); args.TextString = TextView.Buffer.Text; MemoChange(this, args); } } catch (Exception err) { ShowError(err); } }