public TabControlWindowFrame(TabControl ctrl, TabPage page, IWindowPane pane, IServiceProvider services) { this.ctrl = ctrl; this.page = page; this.Pane = pane; this.sc = new ServiceContainer(services); sc.AddService(typeof(IWindowFrame), this); page.Tag = this; pane.SetSite(sc); }
public IWindowFrame CreateDocumentWindow(string documentType, object docItem, string documentTitle, IWindowPane pane) { var tabPage = new TabPage { Text = documentTitle, ImageIndex = 7, }; WindowFrame frame = new WindowFrame(this, documentType, docItem, tabPage, pane); framesByTab.Add(tabPage, frame); this.form.DocumentTabs.TabPages.Add(tabPage); this.form.DocumentTabs.SelectedTab = tabPage; pane.SetSite(services); return(frame); }
public IWindowFrame CreateWindow(string windowType, string windowTitle, IWindowPane pane) { var tabPage = new TabPage { Text = windowTitle, ImageIndex = 7, }; WindowFrame frame = new WindowFrame(this, windowType, tabPage, pane); framesByName.Add(windowType, frame); framesByTab.Add(tabPage, frame); this.form.DocumentTabs.TabPages.Add(tabPage); this.form.DocumentTabs.SelectedTab = tabPage; pane.SetSite(services); return(frame); }
public IWindowFrame CreateWindow(string windowType, string windowTitle, IWindowPane pane) { var tabPage = new TabPage { Text = windowTitle, ImageIndex = 7, }; WindowFrame frame = new WindowFrame(this, windowType, tabPage, pane); framesByName.Add(windowType, frame); framesByTab.Add(tabPage, frame); this.form.DocumentTabs.TabPages.Add(tabPage); this.form.DocumentTabs.SelectedTab = tabPage; pane.SetSite(services); return frame; }
public IWindowFrame CreateDocumentWindow(string documentType, object docItem, string documentTitle, IWindowPane pane) { var tabPage = new TabPage { Text = documentTitle, ImageIndex = 7, }; WindowFrame frame = new WindowFrame(this, documentType, docItem, tabPage, pane); framesByTab.Add(tabPage, frame); this.form.DocumentTabs.TabPages.Add(tabPage); this.form.DocumentTabs.SelectedTab = tabPage; pane.SetSite(services); return frame; }