mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 12:06:29 +00:00
Revert "Removes the default from proces%type%Path mehods. If no path no change."
This reverts commit 6bc656f7bf.
This commit is contained in:
parent
6bc656f7bf
commit
5e7c7771a3
5 changed files with 19 additions and 24 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -121,10 +121,8 @@ namespace PepperDash.Core.JsonToSimpl
|
|||
if (Process(BoolPaths[index], out response))
|
||||
OnBoolChange(response.Equals("true", StringComparison.OrdinalIgnoreCase),
|
||||
index, JsonToSimplConstants.BoolValueChange);
|
||||
else { }
|
||||
|
||||
// OnBoolChange(false, index, JsonToSimplConstants.BoolValueChange);
|
||||
|
||||
else
|
||||
OnBoolChange(false, index, JsonToSimplConstants.BoolValueChange);
|
||||
}
|
||||
|
||||
// Processes the path to a ushort, converting to ushort if able, firing off UshrtChange event
|
||||
|
|
@ -135,14 +133,11 @@ namespace PepperDash.Core.JsonToSimpl
|
|||
{
|
||||
ushort val;
|
||||
try { val = Convert.ToUInt16(response); }
|
||||
catch
|
||||
{
|
||||
val = 0;
|
||||
}
|
||||
catch { val = 0; }
|
||||
OnUShortChange(val, index, JsonToSimplConstants.UshortValueChange);
|
||||
}
|
||||
else { }
|
||||
// OnUShortChange(0, index, JsonToSimplConstants.UshortValueChange);
|
||||
else
|
||||
OnUShortChange(0, index, JsonToSimplConstants.UshortValueChange);
|
||||
}
|
||||
|
||||
// Processes the path to a string property and fires of a StringChange event.
|
||||
|
|
@ -151,8 +146,8 @@ namespace PepperDash.Core.JsonToSimpl
|
|||
string response;
|
||||
if (Process(StringPaths[index], out response))
|
||||
OnStringChange(response, index, JsonToSimplConstants.StringValueChange);
|
||||
else { }
|
||||
// OnStringChange("", index, JsonToSimplConstants.StringValueChange);
|
||||
else
|
||||
OnStringChange("", index, JsonToSimplConstants.StringValueChange);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue