Exemplo n.º 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;
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Raises the <see cref="PopupCancel"/> event.
 /// </summary>
 /// <param name="e">The <see cref="PopupCancelEventArgs"/> associated
 /// with the cancel event.</param>
 protected virtual void OnCancelPopup(PopupCancelEventArgs e)
 {
     if (this.PopupCancel != null)
     {
         this.PopupCancel(this, e);
     }
     if (!e.Cancel)
     {
         owner.ClosePopup();
         // Clear reference for GC
         popup = null;
     }
 }
Exemplo n.º 3
0
 private void popup_Cancel(object sender, PopupCancelEventArgs e)
 {
     OnPopupCancel(e);
 }
 /// <summary>
 /// Raises the <see cref="PopupCancel"/> event.
 /// </summary>
 /// <param name="e">The <see cref="PopupCancelEventArgs"/> associated 
 /// with the cancel event.</param>
 protected virtual void OnCancelPopup(PopupCancelEventArgs e)
 {
     if (this.PopupCancel != null)
     {
         this.PopupCancel(this, e);
     }
     if (!e.Cancel)
     {
         owner.ClosePopup();
         // Clear reference for GC
         popup = null;
     }
 }
 /// <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;
         }
     }
 }
 private void popup_Cancel(object sender, PopupCancelEventArgs e)
 {
     OnPopupCancel(e);
 }