コード例 #1
0
        private string GetBuildName(bool allowParents = false)
        {
            string buildName = TreeViewUtils.GetTreeViewItemPath(treeView, allowParents);

            if (buildName != null && !Config.Instance.ShowCategories)
            {
                string[] parts    = buildName.Split(new char[] { '\\' });
                int      index    = parts[1].IndexOf(") ");
                string   category = parts[1].Substring(1, index - 1);

                buildName = Path.Combine(category, parts[0], parts[1].Substring(index + 2));
            }

            return(buildName);
        }