Exemplo n.º 1
0
        public static async Task Init()
        {
            if (AlbumInfoList != null)
            {
                return;
            }
            var albums = JsonFileHelper.Convert <List <AlbumInfo> >(await JsonFileHelper.ReadAsync(JsonFilename));

            if (albums == null)
            {
                AlbumInfoList = new List <AlbumInfo>();
            }
            else
            {
                AlbumInfoList = albums;
            }
        }
Exemplo n.º 2
0
 public static async Task Init()
 {
     Log = JsonFileHelper.Convert <UpdateLog>(await JsonFileHelper.ReadAsync(JsonFileName)) ?? new UpdateLog();
 }