Textbausteine...
This commit is contained in:
@@ -6,9 +6,8 @@ namespace BS.Shared.DataContracts
|
||||
{
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj is TextModuleDC)
|
||||
if (obj is TextModuleDC y)
|
||||
{
|
||||
var y = (TextModuleDC) obj;
|
||||
if (TextModuleOid == null && y.TextModuleOid == null)
|
||||
{
|
||||
return GetHashCode() == y.GetHashCode();
|
||||
@@ -34,18 +33,18 @@ namespace BS.Shared.DataContracts
|
||||
}
|
||||
|
||||
public ActivationTypeId ActivationType { get; set; }
|
||||
public string DetailDescription { get { return Text; } }
|
||||
public string FilterRelevants { get { return Name + Text; } }
|
||||
public string DetailDescription => Text;
|
||||
public string FilterRelevants => Name + Text;
|
||||
public string IconPath { get; private set; }
|
||||
public string SimpleDescription { get { return Name; } }
|
||||
public string SimpleDescription => Name;
|
||||
public bool SupportsActivationType { get; private set; }
|
||||
|
||||
public long Version
|
||||
{
|
||||
get { return TextModuleVersion == null ? 0 : TextModuleVersion.Value; }
|
||||
set { TextModuleVersion = value; }
|
||||
get => TextModuleVersion ?? 0;
|
||||
set => TextModuleVersion = value;
|
||||
}
|
||||
|
||||
public SolidColorBrush FilterableBrush { get { return new SolidColorBrush(Colors.Transparent); } }
|
||||
public SolidColorBrush FilterableBrush => new SolidColorBrush(Colors.Transparent);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user