static UserAccounts() { if (DateStorage.SaveExists(accountsFile)) { accounts = DateStorage.LoadUserAccounts(accountsFile).ToList(); } else { accounts = new List <UserAccount>(); SaveAccounts(); } }
public static void SaveAccounts() => DateStorage.SaveUserAccounts(accounts, accountsFile);