private void CreateAccount(string nickname = null) { if (!AccountManager.Accounts.Any(a => a.Nickname == nickname)) { Client Client = new Client(this); Nickname = nickname; AccountManager.Accounts.Add(this); if (Settings == null) { Settings = new AccountSettings(this); Settings.Arguments = new Arguments(); } } else { MessageBox.Show("Account with Nickname" + nickname + "already exists!"); } }
public Account(string nickname, Account account) { this.Settings = account.Settings.GetClone(); ID = AccountManager.GenerateID(); CreateAccount(nickname); }