Exemple #1
0
        List <ITreeViewItem> ITreeViewItem.Childrens()
        {
            List <ITreeViewItem> Childrens = new List <ITreeViewItem>();

            //Add Run Sets
            ObservableList <RunSetConfig> runSets = App.LocalRepository.GetSolutionRunSets(specificFolderPath: Path);

            AddsubFolders(Path, Childrens);

            foreach (RunSetConfig RSC in runSets)
            {
                RunSetTreeItem RSTI = new RunSetTreeItem();
                RSTI.RunSetConfig = RSC;
                Childrens.Add(RSTI);
            }
            return(Childrens);
        }
Exemple #2
0
        public override void AddTreeItem()
        {
            string runSetName = string.Empty;

            if (InputBoxWindow.GetInputWithValidation(string.Format("Add New {0}", GingerDicser.GetTermResValue(eTermResKey.RunSet)), string.Format("{0} Name:", GingerDicser.GetTermResValue(eTermResKey.RunSet)), ref runSetName, System.IO.Path.GetInvalidPathChars()))
            {
                RunSetConfig Runsets = LocalRepository.CreateNewRunset(runSetName, Path);

                RunSetTreeItem BFTI = new RunSetTreeItem();
                BFTI.RunSetConfig = Runsets;
                ITreeViewItem addTreeViewItem = mTreeView.Tree.AddChildItemAndSelect(this, BFTI);

                ////Must do the action after the node was added to tree!
                //Runsets.Save();
                ////add BF to cach
                //refresh header- to reflect source control state
                mTreeView.Tree.RefreshHeader(addTreeViewItem);
            }
        }