51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
|
|
using System.Windows.Media;
|
|||
|
|
|
|||
|
|
namespace BS.Shared.DataContracts
|
|||
|
|
{
|
|||
|
|
public partial class TextModuleDC : IFilterableDC
|
|||
|
|
{
|
|||
|
|
public override bool Equals(object obj)
|
|||
|
|
{
|
|||
|
|
if (obj is TextModuleDC)
|
|||
|
|
{
|
|||
|
|
var y = (TextModuleDC) obj;
|
|||
|
|
if (TextModuleOid == null && y.TextModuleOid == null)
|
|||
|
|
{
|
|||
|
|
return GetHashCode() == y.GetHashCode();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if (TextModuleOid != null && y.TextModuleOid != null)
|
|||
|
|
{
|
|||
|
|
return TextModuleOid == y.TextModuleOid;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return false;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public override int GetHashCode()
|
|||
|
|
{
|
|||
|
|
return GetType().Name.GetHashCode() ^ TextModuleOid.GetHashCode();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public override string ToString()
|
|||
|
|
{
|
|||
|
|
return Name;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public ActivationTypeId ActivationType { get; set; }
|
|||
|
|
public string DetailDescription { get { return Text; } }
|
|||
|
|
public string FilterRelevants { get { return Name + Text; } }
|
|||
|
|
public string IconPath { get; private set; }
|
|||
|
|
public string SimpleDescription { get { return Name; } }
|
|||
|
|
public bool SupportsActivationType { get; private set; }
|
|||
|
|
|
|||
|
|
public long Version
|
|||
|
|
{
|
|||
|
|
get { return TextModuleVersion == null ? 0 : TextModuleVersion.Value; }
|
|||
|
|
set { TextModuleVersion = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public SolidColorBrush FilterableBrush { get { return new SolidColorBrush(Colors.Transparent); } }
|
|||
|
|
}
|
|||
|
|
}
|