private void btnCopyTestItems_Click(object sender, EventArgs e) { string results = string.Empty; List <TreeNode> checkedPlanNodes = ValidateFormAndReturnSelectedTestPlanNodes(); if (checkedPlanNodes == null) { return; } int testPlanIndex = 1; foreach (TreeNode planNode in checkedPlanNodes) { myStatus.Text = string.Format("Processing Test Plan '{0}' ({1}/{2})", planNode.Text, testPlanIndex, checkedPlanNodes.Count); this.Refresh(); results += TfsOperations.CopyTestPlan(_destinationTestManagementTeamProject, planNode.Tag as ITestPlan); testPlanIndex++; } #endregion ResultsForm resultsForm = new ResultsForm(results); resultsForm.Show(); myStatus.Text = string.Empty; MessageBox.Show("Finished...", "Finished"); }
private void btnCopyTestItems_Click(object sender, EventArgs e) { string results = string.Empty; List<TreeNode> checkedPlanNodes = ValidateFormAndReturnSelectedTestPlanNodes(); if (checkedPlanNodes == null) { return; } int testPlanIndex = 1; foreach (TreeNode planNode in checkedPlanNodes) { myStatus.Text = string.Format("Processing Test Plan '{0}' ({1}/{2})", planNode.Text, testPlanIndex, checkedPlanNodes.Count); this.Refresh(); results += TfsOperations.CopyTestPlan(_destinationTestManagementTeamProject, planNode.Tag as ITestPlan); testPlanIndex++; } #endregion ResultsForm resultsForm = new ResultsForm(results); resultsForm.Show(); myStatus.Text = string.Empty; MessageBox.Show("Finished...", "Finished"); }