8.30
This commit is contained in:
@@ -17,12 +17,12 @@ namespace SepCore.Definition
|
||||
/// </summary>
|
||||
public partial class TbUIFormConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, UIFormConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.Dictionary<UIFormType, UIFormConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<UIFormConfig> _dataList;
|
||||
|
||||
public TbUIFormConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, UIFormConfig>();
|
||||
_dataMap = new System.Collections.Generic.Dictionary<UIFormType, UIFormConfig>();
|
||||
_dataList = new System.Collections.Generic.List<UIFormConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
@@ -34,12 +34,12 @@ public partial class TbUIFormConfig
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, UIFormConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.Dictionary<UIFormType, UIFormConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<UIFormConfig> DataList => _dataList;
|
||||
|
||||
public UIFormConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public UIFormConfig Get(int key) => _dataMap[key];
|
||||
public UIFormConfig this[int key] => _dataMap[key];
|
||||
public UIFormConfig GetOrDefault(UIFormType key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public UIFormConfig Get(UIFormType key) => _dataMap[key];
|
||||
public UIFormConfig this[UIFormType key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user