public AdditionalPathViewModel(AdditionalPath ap, string userName)
    :this(ap)
 {
     UserName = userName;
     LocalPath = ATACore.RegistryManager.GetProjectLocalPath(UserName, TfsPath);
     WorkspacesForDelete = new List<string>();
 }
 public AdditionalPathViewModel(AdditionalPath ap)
 {
     base.TfsPath = ap.TfsPath;
     base.TfsUrl = ap.TfsUrl;
     base.AdditionalPathId = ap.AdditionalPathId;
     WorkspacesForDelete = new List<string>();
 }
Пример #3
0
 private static void AddAdditionalPathsToNewProject(ATAEntities context, List <string> addiotionalPaths, ATADataModel.Project project)
 {
     addiotionalPaths.ForEach(t =>
     {
         ATADataModel.AdditionalPath currentAdditionalPath = ATACore.Managers.AdditionalPathManager.GetByName(context, t);
         project.AdditionalPaths.Add(currentAdditionalPath);
     });
 }
 public void AddNew(ATAEntities context, string tfsPath, string tfsUrl)
 {
     AdditionalPath ap = new AdditionalPath()
     {
         TfsPath = tfsPath,
         TfsUrl = tfsUrl
     };
     context.AdditionalPaths.Add(ap);
     context.SaveChanges();
 }