public ServerAccounts() { if (ServerDataStorage.SaveExists(_serverAccountsFile)) { _accounts = ServerDataStorage.LoadServerSettings(_serverAccountsFile).ToList(); } else { _accounts = new List <ServerSettings>(); SaveServerAccounts(); } }
public void SaveServerAccounts() { ServerDataStorage.SaveServerSettings(_accounts, _serverAccountsFile); }