esc-337, found errant timer resets on comm monitor and Sammy display

This commit is contained in:
Heath Volmer
2017-08-16 15:26:46 -06:00
parent 17b0373c73
commit 85683ea9fa
11 changed files with 22 additions and 17 deletions

View File

@@ -235,12 +235,23 @@ namespace PepperDash.Essentials.Core
public PropertyInfo PropInfo { get; private set; }
public string Name { get { return PropInfo.Name; } }
public string Type { get { return PropInfo.PropertyType.Name; } }
public string Value { get {
public string Value { get
{
if (PropInfo.CanRead)
return PropInfo.GetValue(Parent, null).ToString();
{
try
{
return PropInfo.GetValue(Parent, null).ToString();
}
catch (Exception)
{
return null;
}
}
else
return "-";
return null;
} }
public bool CanRead { get { return PropInfo.CanRead; } }
public bool CanWrite { get { return PropInfo.CanWrite; } }