Пример #1
0
 public void OnPageClose(DockPage page)
 {
     if (page.Widget is IDockContent)
     {
         if (!((IDockContent)page.Widget).Closing())
         {
             return;
         }
     }
     PageClose?.Invoke(this, new DockPageEventArgs(page));
     if (page.HideOnClose)
     {
         page.Visible = false;
     }
     else
     {
         Items.Remove(page);
         page.Widget.Dispose();
     }
 }
Пример #2
0
 private void ExtandedWebBrowser1_Quit(object sender, EventArgs e)
 {
     isAppExit = true;
     PageClose?.Invoke(this, EventArgs.Empty);
 }