Пример #1
0
 static UserAccounts()
 {
     if (DateStorage.SaveExists(accountsFile))
     {
         var accs = DateStorage.LoadUserAccounts(accountsFile);
         accounts = accs.ToList();
     }
     else
     {
         accounts = new List <DataFormat>();
         SaveAccounts();
     }
 }
Пример #2
0
 public static void SaveAccounts() => DateStorage.SaveUserAccounts(accounts, accountsFile);