예제 #1
0
        private void historyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (treeListView1.SelectedIndices.Count > 0)
            {
                Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer vcs = tfsinterface.SCMUtils.GetTFSServer(_tfsServer);

                foreach (int idx in treeListView1.SelectedIndices)
                {
                    HistoryViewerForm     hist = new HistoryViewerForm();
                    branch_order.TreeItem item = treeListView1.GetModelObject(idx) as branch_order.TreeItem;

                    hist.setInfos(vcs, item.FullPath, (int)numericUpDown1.Value);
                    hist.Show();
                }
            }
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            branch_order bo = new branch_order();

            branch_order.TreeItem root = null;
            branch_order.Options  options;
            options.src_path = textBox1.Text;
            options.src_id   = 0;
            options.server   = tfsinterface.SCMUtils.GetTFSServer(_tfsServer);

            root = bo.get_branches(options);

            treeListView1.ClearObjects();
            treeListView1.AddObject(root);
            treeListView1.ExpandAll();
        }
예제 #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (treeListView1.SelectedIndices.Count > 1)
            {
                branch_order.TreeItem t1 = treeListView1.GetModelObject(treeListView1.SelectedIndices[0]) as branch_order.TreeItem;
                branch_order.TreeItem t2 = treeListView1.GetModelObject(treeListView1.SelectedIndices[1]) as branch_order.TreeItem;

                /* @todo i need to fix the redundant nature of 'treeitem' and patchinfo ... */
                string left, right;

                left  = t1.FullPath;
                right = t2.FullPath;

                if (_useLocals.Checked)
                {
                    left  = _workspaces.getLocalPath((string)_workspacesCB.SelectedItem, t1.FullPath);
                    right = _workspaces.getLocalPath((string)_workspacesCB.SelectedItem, t2.FullPath);
                }

                tfsinterface.Utils.VisualDiff(left, right, _vcs);
            }
        }