Esempio n. 1
0
        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();
            }
        }
        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();
            }
        }