Textbausteine...

This commit is contained in:
Lyndon
2018-01-05 19:13:18 -04:00
parent 7fcb146d13
commit 19c596dfe1
16 changed files with 326 additions and 307 deletions

View File

@@ -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);
}
}