Ejemplo n.º 1
0
 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!");
     }
 }
Ejemplo n.º 2
0
 public Account(string nickname, Account account)
 {
     this.Settings = account.Settings.GetClone();
     ID            = AccountManager.GenerateID();
     CreateAccount(nickname);
 }