/***********************/ /* OpenExistingTabItem */ /***********************/ public void OpenExistingTabItem( ClosableTab theTabItem) { if (this.mainGrid.RowDefinitions[3].Height.Value == 0.0) { this.mainGrid.RowDefinitions[1].Height = new GridLength(1, GridUnitType.Star); this.mainGrid.RowDefinitions[3].Height = new GridLength(1, GridUnitType.Star); } theTabItem.Focus(); }
/***************/ /* OpenTabItem */ /***************/ public void OpenTabItem( ClosableTab theTabItem) { if (this.mainGrid.RowDefinitions[3].Height.Value == 0.0) { this.mainGrid.RowDefinitions[1].Height = new GridLength(1, GridUnitType.Star); this.mainGrid.RowDefinitions[3].Height = new GridLength(1, GridUnitType.Star); } theTabItem.TabClosedEvent += new TabClosedDelegate(CloseTabItem); this.debugTabControl.Items.Add(theTabItem); windowCount++; theTabItem.Focus(); }