/// <summary> /// Raises the <see cref="PopupClosed" /> event. /// </summary> /// <param name="e"><see cref="PopupClosedEventArgs" /> describing the /// popup form that is being closed.</param> protected virtual void OnPopupClosed(PopupClosedEventArgs e) { if (this.PopupClosed != null) { this.PopupClosed(this, e); } }
/// <summary> /// Handles the PopupClosed event of the popupHelper control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="PopupClosedEventArgs"/> instance containing the event data.</param> void popupHelper_PopupClosed(object sender, PopupClosedEventArgs e) { Control clientArea = popup.Content; Bar.ActiveBand.Controls.Add(clientArea); clientArea.Invalidate(); orgWidth = popup.Width; Layout(Bar, new LayoutEventArgs(Bar, "PopUp")); }