mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-16 05:04:48 +00:00
Removes the default from proces%type%Path mehods. If no path no change.
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -121,8 +121,10 @@ namespace PepperDash.Core.JsonToSimpl
|
|||||||
if (Process(BoolPaths[index], out response))
|
if (Process(BoolPaths[index], out response))
|
||||||
OnBoolChange(response.Equals("true", StringComparison.OrdinalIgnoreCase),
|
OnBoolChange(response.Equals("true", StringComparison.OrdinalIgnoreCase),
|
||||||
index, JsonToSimplConstants.BoolValueChange);
|
index, JsonToSimplConstants.BoolValueChange);
|
||||||
else
|
else { }
|
||||||
OnBoolChange(false, index, JsonToSimplConstants.BoolValueChange);
|
|
||||||
|
// OnBoolChange(false, index, JsonToSimplConstants.BoolValueChange);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Processes the path to a ushort, converting to ushort if able, firing off UshrtChange event
|
// Processes the path to a ushort, converting to ushort if able, firing off UshrtChange event
|
||||||
@@ -133,11 +135,14 @@ namespace PepperDash.Core.JsonToSimpl
|
|||||||
{
|
{
|
||||||
ushort val;
|
ushort val;
|
||||||
try { val = Convert.ToUInt16(response); }
|
try { val = Convert.ToUInt16(response); }
|
||||||
catch { val = 0; }
|
catch
|
||||||
|
{
|
||||||
|
val = 0;
|
||||||
|
}
|
||||||
OnUShortChange(val, index, JsonToSimplConstants.UshortValueChange);
|
OnUShortChange(val, index, JsonToSimplConstants.UshortValueChange);
|
||||||
}
|
}
|
||||||
else
|
else { }
|
||||||
OnUShortChange(0, index, JsonToSimplConstants.UshortValueChange);
|
// OnUShortChange(0, index, JsonToSimplConstants.UshortValueChange);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Processes the path to a string property and fires of a StringChange event.
|
// Processes the path to a string property and fires of a StringChange event.
|
||||||
@@ -146,8 +151,8 @@ namespace PepperDash.Core.JsonToSimpl
|
|||||||
string response;
|
string response;
|
||||||
if (Process(StringPaths[index], out response))
|
if (Process(StringPaths[index], out response))
|
||||||
OnStringChange(response, index, JsonToSimplConstants.StringValueChange);
|
OnStringChange(response, index, JsonToSimplConstants.StringValueChange);
|
||||||
else
|
else { }
|
||||||
OnStringChange("", index, JsonToSimplConstants.StringValueChange);
|
// OnStringChange("", index, JsonToSimplConstants.StringValueChange);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user