コード例 #1
0
 /// <summary>
 /// When the bar is collapsed this method closes the popup.
 /// Call this before opening a new modal form.
 /// </summary>
 public virtual void ClosePopup()
 {
     if ((Bar.Collapsed) && (popup.Visible))
     {
         popupHelper.ClosePopup();
     }
 }
コード例 #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;
     }
 }