/// <summary> /// The is item linked. /// </summary> /// <param name="sourceItem"> /// The source item. /// </param> /// <param name="item"> /// The item. /// </param> /// <returns> /// The <see cref="bool"/>. /// </returns> private bool IsItemLinked(WorkItem sourceItem, string item) { int id = TfsManager.ParseId(item); WorkItem targetWorkItem = tfsManager.GetWorkItem(id); return(sourceItem.Links.Cast <Link>().Any(l => targetWorkItem.Links.Contains(l))); }
/// <summary> /// Initializes a new instance of the <see cref="TraceabilityMatrix"/> class. /// Traceability Matrix Constructor /// </summary> /// <param name="manager"> /// The manager. /// </param> /// <param name="activeDocument"> /// The active Document. /// </param> public TraceabilityMatrix(Document activeDocument) { tfsManager = TfsManager.Instance; document = activeDocument; matrixReportData = new MatrixReportData(); }
public LinkWorkItem(Document activeDocument) { tfsManager = TfsManager.Instance; document = activeDocument; }
/// <summary> /// Ribbon Init Controls /// </summary> public void RibbonInitControls() { addIn = Globals.ThisAddIn; ConnectionUrl = string.Empty; tfsManager = TfsManager.Instance; menuTfsUserLabel = Properties.Resources.lblTextNotLoggedIn; btnConnectLabel = Properties.Resources.splitBtnConnectLabel; addIn.Application.WindowSelectionChange += TextSelectionChanged; IsConnected = false; foreach (var url in Properties.Settings.Default.ConnectionURLs) ConnectionUrls.Add(url); connectionUrlSelectedIndex = 0; }
public Report(Document activeDocument) { tfsManager = TfsManager.Instance; document = activeDocument; }