Beispiel #1
0
 void OnToggleChange(E_CatalogType type, bool value)
 {
     if (value)
     {
         SetCatalogType(type);
     }
 }
Beispiel #2
0
    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);
    }
Beispiel #3
0
 public void SetCatalogType(E_CatalogType type)
 {
     _currentCatalogType = type;
 }
Beispiel #4
0
 public void Init(E_CatalogType catalogType)
 {
     CurrentCatalogType = catalogType;
 }