|
@@ -1,10 +1,7 @@
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
using System;
|
|
|
-using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
-using System.Linq;
|
|
|
-using System.Text;
|
|
|
|
|
|
namespace InABox.Core
|
|
|
{
|
|
@@ -89,9 +86,14 @@ namespace InABox.Core
|
|
|
|
|
|
public class DFLoadStorage
|
|
|
{
|
|
|
- public Dictionary<string, object?> FormData { get; private set; }
|
|
|
+ public Dictionary<string, object?> FormData { get; private set; } = new Dictionary<string, object?>();
|
|
|
|
|
|
public DFLoadStorage(Dictionary<string, object?> formData, Dictionary<string, object?>? blobData)
|
|
|
+ {
|
|
|
+ Load(formData, blobData);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void Load(Dictionary<string, object?> formData, Dictionary<string, object?>? blobData)
|
|
|
{
|
|
|
FormData = formData;
|
|
|
|
|
@@ -106,6 +108,7 @@ namespace InABox.Core
|
|
|
updates.Add(new Tuple<string, object?>(key, blob));
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
foreach (var (key, value) in updates)
|
|
|
{
|
|
|
FormData[key] = value;
|