コード例 #1
0
        /// <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)));
        }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
ファイル: TraceabilityMatrix.cs プロジェクト: mguerrer/Salma
 /// <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();
 }
コード例 #4
0
 public LinkWorkItem(Document activeDocument)
 {
     tfsManager = TfsManager.Instance;
     document   = activeDocument;
 }
コード例 #5
0
ファイル: SalmaRibbon.cs プロジェクト: nkravch/SALMA-2.0
        /// <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;
        }
コード例 #6
0
ファイル: Report.cs プロジェクト: mguerrer/Salma
 public Report(Document activeDocument)
 {
     tfsManager = TfsManager.Instance;
     document   = activeDocument;
 }
コード例 #7
0
ファイル: LinkWorkItem.cs プロジェクト: nkravch/SALMA-2.0
 public LinkWorkItem(Document activeDocument)
 {
     tfsManager = TfsManager.Instance;
     document = activeDocument;
 }