Files
git-tfs/GitTfs.VsCommon/Wrappers.PostVs2010.cs
T
2014-02-06 15:35:03 +04:00

31 lines
718 B
C#

using Microsoft.TeamFoundation.VersionControl.Client;
using Sep.Git.Tfs.Core.TfsInterop;
namespace Sep.Git.Tfs.VsCommon
{
public class WrapperForBranchObject : WrapperFor<BranchObject>, IBranchObject
{
BranchObject _branch;
public WrapperForBranchObject(BranchObject branch) : base(branch)
{
_branch = branch;
}
public string Path
{
get { return _branch.Properties.RootItem.Item; }
}
public bool IsRoot
{
get { return _branch.Properties.ParentBranch == null; }
}
public string ParentPath
{
get { return _branch.Properties.ParentBranch.Item; }
}
}
}