public bool Init(string tfsad, string projectname) { try { TFSTeamProject = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(tfsad)); ItemStore = TFSTeamProject.GetService <WorkItemStore>(); RecentProject = ItemStore.Projects[projectname]; return(true); } catch { return(false); } }
public bool Init() { try { TFSTeamProject = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(@"http://tfs:8080/tfs/defaultcollection")); ItemStore = TFSTeamProject.GetService <WorkItemStore>(); RecentProject = ItemStore.Projects["XR_LouTang"]; return(true); } catch { return(false); } }