using System.Windows.Media; namespace BS.Shared.DataContracts.Compact { public partial class CompactTeamDC : IFilterableDC { public ActivationTypeId ActivationType { get { return ActivationTypeId.Active; } set { } } public string DetailDescription { get { return this.ToString(); } } public string FilterRelevants { get { return this.Name + " " + this.LeaderString; } } public string IconPath { get { return @"..\..\Ressources\Icons\UserGroupBusinessDisabled.png"; } } public string SimpleDescription { get { return this.Name; } } public bool SupportsActivationType { get { return false; } } public long Version { get { return this.TeamVersion; } set { this.TeamVersion = value; } } public override bool Equals(object obj) { if (obj is CompactTeamDC) { return this.TeamOid == ((CompactTeamDC)obj).TeamOid; } return false; } public override int GetHashCode() { return this.GetType().Name.GetHashCode() ^ this.TeamOid.GetHashCode(); } public override string ToString() { return this.Name + ", Leitung: " + this.LeaderString; } public SolidColorBrush FilterableBrush { get { return new SolidColorBrush(Colors.Transparent); } } } }