예제 #1
0
        private List <Account> GetAccountList()
        {
            string walletPath = GetApplicationFilesPath() + "\\" + _appSettingsService.GetKeyAsync(AppSettingsKeys.AccountsPath).Result;

            if (!File.Exists(walletPath))
            {
                return(new List <Account>());
            }
            var            line = File.ReadAllText(walletPath);
            List <Account> list = JsonConvert.DeserializeObject <List <Account> >(line);

            return(list);
        }