refactor: 更新代码

This commit is contained in:
Argo-Tianyi 2022-03-31 09:48:33 +08:00
parent 13e5b282e9
commit c516a0064d
1 changed files with 5 additions and 5 deletions

View File

@ -38,15 +38,15 @@ public static class DialogExtensions
} }
return ret; return ret;
}, },
new Dictionary<string, object?> parameters =>
{ {
[nameof(AssignmentBase<TItem>.Items)] = items, parameters.Add(nameof(AssignmentBase<TItem>.Items), items);
[nameof(AssignmentBase<TItem>.Value)] = value, parameters.Add(nameof(AssignmentBase<TItem>.Value), value);
[nameof(AssignmentBase<TItem>.OnValueChanged)] = new Action<List<string>>(v => parameters.Add(nameof(AssignmentBase<TItem>.OnValueChanged), new Action<List<string>>(v =>
{ {
value.Clear(); value.Clear();
value.AddRange(v); value.AddRange(v);
}) }));
}, },
op => op =>
{ {