Example #1
0
 /// <summary>
 /// Raises the <see cref="PopupCancel" /> event.
 /// </summary>
 /// <param name="e"><see cref="PopupCancelEventArgs" /> describing the
 /// popup form that about to be cancelled.</param>
 protected virtual void OnPopupCancel(PopupCancelEventArgs e)
 {
     if (this.PopupCancel != null)
     {
         this.PopupCancel(this, e);
         if (!e.Cancel)
         {
             skipClose = true;
         }
     }
 }
Example #2
0
 /// <summary>
 /// Handles the Cancel event of the popup control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="PopupCancelEventArgs"/> instance containing the event data.</param>
 private void popup_Cancel(object sender, PopupCancelEventArgs e)
 {
     OnPopupCancel(e);
 }