public void RemoveContent(TabControl.TableContent con)
 {
     control.RemoveContent(con);
     con.Item.transform.SetParent(null);
     con.Content.transform.SetParent(null);
     if (control.contents.Count == 0)
     {
         dockArea.Dispose();
         layout.contents.Remove(this);
         layout.Refresh();
     }
 }
Beispiel #2
0
 public void RemoveContent(LayoutContent con)
 {
     con.model.SetParent(null);
     con.Head.SetParent(null);
     contents.Remove(con);
     if (con == Current)
     {
         if (contents.Count == 0)
         {
             layoutArea.Dispose();
             layout.Refresh();
             Current = null;
         }
         else
         {
             Current = contents[0];
             Current.Show();
         }
     }
 }