private void InitializeTabControl() { detailsTabs = new OMETabStrip(); detailsTabs.Dock = DockStyle.Fill; detailsTabs.Show(); tableLayoutPanelResult.Controls.Add(detailsTabs, 0, 0); detailsTabs.TabStripItemSelectionChanged += tabControlObjHierarchy_TabStripItemSelectionChanged; detailsTabs.Click += tabControlObjHierarchy_Click; detailsTabs.TabStripItemClosing += tabControlObjHierarchy_TabStripItemClosing; }
private void SaveDetailsViewChangedObjects(OMETabStrip detailTabs) { foreach (OMETabStripItem detailsPage in detailTabs.Items) { if (detailsPage.Name.Equals(CONST_TRUE)) { Helper.DbInteraction.SaveCollection(ReferencedObjectFor(detailsPage), UpdateDethFor(detailsPage)); PaintBlack(TreeViewFor(detailsPage)); detailsPage.Name = CONST_FALSE; int pageIndex = OffsetInCurrentPageFor(ObjectIndexInMasterViewFor(detailsPage)); UpdateMasterViewObjectEditedStatus(masterView.Rows[pageIndex - 1], false); } } }