private void btnSelectDestinationTfsProject_Click(object sender, EventArgs e)
        {
            _destinationTestManagementTeamProject = TfsOperations.SelectTfsProject(true);

            if (_destinationTestManagementTeamProject != null)
            {
                lblDestinationTfsProject.Text = _destinationTestManagementTeamProject.ToString();
            }
        }
        private void btnSelectDestinationTfsProject_Click(object sender, EventArgs e)
        {
            _destinationTestManagementTeamProject = TfsOperations.SelectTfsProject(true);

            if (_destinationTestManagementTeamProject != null)
            {
                lblDestinationTfsProject.Text = _destinationTestManagementTeamProject.ToString();
            }
        }
        private void btnSelectSourceTfsProject_Click(object sender, EventArgs e)
        {
            _sourceTestManagementTeamProject = TfsOperations.SelectTfsProject(false);

            if (_sourceTestManagementTeamProject != null)
            {            
                lblSourceTfsProject.Text = _sourceTestManagementTeamProject.ToString();

                treeTestPlans.Nodes.Clear();
                
                this.Refresh();
                LoadTestPlansToForm(treeTestPlans);

                myStatus.Text = string.Empty;            
            }
        }
        private void btnSelectSourceTfsProject_Click(object sender, EventArgs e)
        {
            _sourceTestManagementTeamProject = TfsOperations.SelectTfsProject(false);

            if (_sourceTestManagementTeamProject != null)
            {
                lblSourceTfsProject.Text = _sourceTestManagementTeamProject.ToString();

                treeTestPlans.Nodes.Clear();

                this.Refresh();
                LoadTestPlansToForm(treeTestPlans);

                myStatus.Text = string.Empty;
            }
        }
        private void btn_connect_Click(object sender, RoutedEventArgs e)
        {
            this._tfs = null;
            Sel_TPlan.Items.Clear();
            treeView_suite.Items.Clear();
            TFS_Textbox.Text = null;
            TeamProjectPicker tpp = new TeamProjectPicker(TeamProjectPickerMode.SingleProject, false);
            tpp.ShowDialog();

            if (tpp.SelectedTeamProjectCollection != null)
            {

                this._tfs = tpp.SelectedTeamProjectCollection;

                ITestManagementService test_service = (ITestManagementService)_tfs.GetService(typeof(ITestManagementService));
                _store = (WorkItemStore)_tfs.GetService(typeof(WorkItemStore));

                TFS_Textbox.Text = this._tfs.Name;

                    string proj_name = tpp.SelectedProjects[0].Name;
                    _testproject = test_service.GetTeamProject(proj_name);
                    if (_testproject != null)
                    {
                        TFS_Textbox.Text = TFS_Textbox.Text + "\\" + _testproject.ToString();
                        GetTestPlans(_testproject);
                    }
                    else
                        MessageBox.Show("Please select a valid Team Project");

            }
        }