コード例 #1
0
 // Standard event raising pattern.
 protected virtual void OnNewDragNDropChanged(TextEventArgs e)
 {
     // Create a copy of the event to work with
     EventHandler<TextEventArgs> eh = NewDragNDropChanged;
     /* If there are no subscribers, eh will be null so we need to check
      * to avoid a NullReferenceException. */
     if (eh != null)
         eh(this, e);
 }
コード例 #2
0
 // Our new event (form2.NewTextChanged) handler
 private void PopupForm_NewTextChanged(object sender, TextEventArgs e)
 {
     //Text = e.Text;
 }