mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 12:06:29 +00:00
Changed eventhandler type for ActualJsonFile to be in line with other event handlers
This commit is contained in:
parent
ef81d38fc2
commit
c8e466e388
3 changed files with 5 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ namespace PepperDash.Core.JsonToSimpl
|
|||
public const ushort UshortValueChange = 101;
|
||||
public const ushort StringValueChange = 201;
|
||||
public const ushort FullPathToArrayChange = 202;
|
||||
public const ushort JsonActualFileChange = 203;
|
||||
public const ushort ActualFilePathChange = 203;
|
||||
}
|
||||
|
||||
//**************************************************************************************************//
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ namespace PepperDash.Core.JsonToSimpl
|
|||
}
|
||||
//var actualFileName = actualFile.FullName;
|
||||
ActualFilePath = actualFile.FullName;
|
||||
OnStringChange(ActualFilePath, 0, JsonToSimplConstants.JsonActualFileChange);
|
||||
OnStringChange(ActualFilePath, 0, JsonToSimplConstants.ActualFilePathChange);
|
||||
Debug.Console(1, "Actual JSON file is {0}", ActualFilePath);
|
||||
|
||||
string json = File.ReadToEnd(ActualFilePath, System.Text.Encoding.ASCII);
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ namespace PepperDash.Core.JsonToSimpl
|
|||
if (actualLocalFile != null)
|
||||
{
|
||||
ActualFilePath = actualLocalFile.FullName;
|
||||
OnStringChange(ActualFilePath, 0, JsonToSimplConstants.JsonActualFileChange);
|
||||
OnStringChange(ActualFilePath, 0, JsonToSimplConstants.ActualFilePathChange);
|
||||
}
|
||||
// If the local file does not exist, then read the portal file xyz.json
|
||||
// and create the local.
|
||||
|
|
@ -76,6 +76,7 @@ namespace PepperDash.Core.JsonToSimpl
|
|||
// got the portal file, hand off to the merge / save method
|
||||
PortalConfigReader.ReadAndMergeFileIfNecessary(actualPortalFile.FullName, newLocalPath);
|
||||
ActualFilePath = newLocalPath;
|
||||
OnStringChange(ActualFilePath, 0, JsonToSimplConstants.ActualFilePathChange);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue