Details for close reason event handlers.
Inheritance: CancelEventArgs
コード例 #1
0
 /// <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);
 }
コード例 #2
0
 private void OnProviderClose(object sender, CloseReasonEventArgs e)
 {
     if (_contextMenu != null)
         _contextMenu.Close(e.CloseReason);
 }
コード例 #3
0
 /// <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);
     }
 }
コード例 #4
0
 private void OnProviderClose(object sender, CloseReasonEventArgs e)
 {
     // Remove ourself from being shown
     VisualPopupManager.Singleton.EndPopupTracking(this);
 }
 /// <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);
 }