示例#1
0
 internal virtual void OnChildClosed(Toplevel top)
 {
     if (IsMdiContainer)
     {
         SetChildNeedsDisplay();
     }
     ChildClosed?.Invoke(top);
 }
 /// <summary>
 /// The method that gets called when a child windows wanting to invoke the <see cref="ChildClosed"/> event in
 /// order to notify all other presenters that inherit the <see cref="BasePresenter"/>.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void OnChildClosed(object sender, PresenterArgs e)
 {
     Log.Info($"Child window closed. Invoking ChildClosed => {e.Child}");
     ChildClosed?.Invoke(sender, e);
 }