aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamMembersProvider.cs
blob: 0691ca6bd601383f56c551861b45403512a3ae1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.AutoComplete.Editors;
using Tango.Core.DI;

namespace Tango.MachineStudio.UI.TFS
{
    public class TeamMembersProvider : ISuggestionProvider
    {
        public IEnumerable GetSuggestions(string filter)
        {
            return TangoIOC.Default.GetInstance<TeamFoundationServiceExtendedClient>().Project.Members.Where(x => x.AssignName.ToLower().Contains(filter.ToLower()));
        }
    }
}
s="w"> { public String ComponentName { get; set; } /// <summary> /// Gets or sets a value indicating whether this instance has component1 of a hardware version ( from left panel). /// </summary> /// <value> /// <c>true</c> if this instance has component1; otherwise, <c>false</c>. /// </value> public bool HasComponent1 { get; set; } /// <summary> /// Gets or sets a value indicating whether this instance has component2 of a hardware version ( from right panel). /// </summary> /// <value> /// <c>true</c> if this instance has component2; otherwise, <c>false</c>. /// </value> public bool HasComponent2 { get; set; } public SynchronizedObservableCollection<HardwareComponentPropertyResult> Properties { get; set; } public bool HasDifferences { get { return Properties.Any(item => item.HasDifferences); } } public HardwareComponentCompareResult() { Properties = new SynchronizedObservableCollection<HardwareComponentPropertyResult>(); } } }