/// <summary> /// Raises the Close event on the provider. /// </summary> /// <param name="e">A CancelEventArgs containing the event data.</param> public void Close(CloseReasonEventArgs e) { _provider.OnClose(e); }
private void OnProviderClose(object sender, CloseReasonEventArgs e) { if (_contextMenu != null) _contextMenu.Close(e.CloseReason); }
/// <summary> /// Fires the Close event. /// </summary> /// <param name="e">A CloseReasonEventArgs containing the event data.</param> public void OnClose(CloseReasonEventArgs e) { if (_parent != null) _parent.OnClose(e); else if (Close != null) { _closeReason = e.CloseReason; Close(this, e); } }
private void OnProviderClose(object sender, CloseReasonEventArgs e) { // Remove ourself from being shown VisualPopupManager.Singleton.EndPopupTracking(this); }