Example #1
0
        protected override void OnResolveItem(ResolveItemEventArgs e)
        {
            SvnItemData sid = e.SelectionItem as SvnItemData;

            if (sid == null)
            {
                return;
            }

            foreach (FileSystemListViewItem lvi in Items)
            {
                if (lvi.SvnItem == sid.SvnItem)
                {
                    e.Item = lvi;
                }
            }
        }
Example #2
0
        protected override void OnResolveItem(TreeViewWithSelection <FileSystemTreeNode> .ResolveItemEventArgs e)
        {
            SvnItemData dt = e.SelectionItem as SvnItemData;

            if (dt != null)
            {
                foreach (FileSystemTreeNode tn in AllNodes)
                {
                    if (tn.SvnItem == dt.SvnItem)
                    {
                        e.Item = tn;
                        return;
                    }
                }
            }

            base.OnResolveItem(e);
        }