public QCTestPlanExplorerPage() { InitializeComponent(); TestPlanExplorerTreeView.TreeTitle = "'" + ALMCore.AlmConfig.ALMDomain + " \\ " + ALMCore.AlmConfig.ALMProjectName + "' - Test Plan Explorer"; TestPlanExplorerTreeView.SetTitleSection(2, 30, 15, FontWeights.Bold); //set root item QCTestPlanFolderTreeItem tvi = new QCTestPlanFolderTreeItem(); tvi.Folder = "Subject"; tvi.Path = @"Subject"; TestPlanExplorerTreeView.Tree.AddItem(tvi); TestPlanExplorerTreeView.Tree.ItemSelected += TestPlanExplorerTreeView_ItemSelected; }
public QtestModuleExplorerPage() { InitializeComponent(); TestPlanExplorerTreeView.TreeTitle = "'" + ALMCore.DefaultAlmConfig.ALMDomain + " \\ " + ALMCore.DefaultAlmConfig.ALMProjectName + "' - Module Explorer"; TestPlanExplorerTreeView.SetTitleSection(2, 30, 15, FontWeights.Bold); //set root item GetTreeData(); foreach (QTestApiModel.ModuleResource moduleResource in treeData) { QtestModuleTreeItem tvi = new QtestModuleTreeItem(moduleResource.Children); tvi.ID = moduleResource.Id.ToString(); tvi.Path = moduleResource.Path; tvi.Name = moduleResource.Name; TestPlanExplorerTreeView.Tree.AddItem(tvi); } TestPlanExplorerTreeView.Tree.ItemSelected += TestPlanExplorerTreeView_ItemSelected; }