private void AddTab() { if (_ItemList == null) { _ItemList = new InnerStructItemList(); _ItemList.SelectChanged += ConItem_SelectionChanged; TabContent.AddTabItem(TAB_CONSTRUCT_ITEM_STR, _ItemList, TabPopType.POP_CLICK); } _ItemList.SetListDataContent(_CurInfo._InnerStructItemCollection); TabContent.ShowTabContent(TAB_CONSTRUCT_ITEM_STR); }
public void SelectedPath() { if (TabContent.GetTabItem(TAB_PATH_STR) == null) { if (PictureManager.Instance.PictureDirectories.Count != 0) { PicturePathList pathList = new PicturePathList(); pathList.InitPathEvent(); pathList.SelectChanged += DirList_SelectionChanged; TabContent.AddTabItem(TAB_PATH_STR, pathList, TabPopType.POP_CLICK); TabContent.ShowTabContent(TAB_PATH_STR); } } else { PicturePathList pathList = TabContent.GetTabItem(TAB_PATH_STR).TabControl as PicturePathList; pathList.InitPathEvent(); } }