void OnToggleChange(E_CatalogType type, bool value) { if (value) { SetCatalogType(type); } }
public Dictionary <int, List <string> > GetRecordContent(bool isClear, E_CatalogType catalogType, string catalog) { var note = isClear ? RecordData.Instance.Note : CurrentRecord.Note; if (!note.TryGetValue(catalogType, out Dictionary <string, Dictionary <int, List <string> > > dict)) { return(null); } dict.TryGetValue(catalog, out var pageDict); return(pageDict); }
public void SetCatalogType(E_CatalogType type) { _currentCatalogType = type; }
public void Init(E_CatalogType catalogType) { CurrentCatalogType = catalogType; }