Esempio n. 1
0
 private DockTabControlPanel CreateTabControlPanel()
 {
     DockTabControlPanel panel = new DockTabControlPanel ();
     panel.PanelUndocking += onPanelUndocking;
     panel.TabUndocking += onTabUndocking;
     return panel;
 }
        private void SaveTabControlPanel(XmlWriter w, DockTabControlPanel tabControlPanel)
        {
            w.WriteStartElement ("tabControl");
            TabControl tabControl = tabControlPanel.TabControl;
            string formNames = "";

            foreach (TabPage tab in tabControl.TabPages) {
                dockManager.DockableForms.ForEach (form => {
                    if (form.TabPage == tab) {
                        formNames += "," + form.Name;
                    }
                });
            }

            formNames = formNames.Substring (1);
            w.WriteAttributeString ("forms", formNames);
            w.WriteEndElement ();
        }
Esempio n. 3
0
 private bool AllTabsHidden(DockTabControlPanel panel)
 {
     return DockableForms.Exists (form => form.TabVisible && form.TabControlPanel == panel) == false;
 }