Exemplo n.º 1
0
        public void AddAccount(XivAccount account)
        {
            var existingAccount = Accounts.FirstOrDefault(a => a.Id == account.Id);

            if (existingAccount != null && existingAccount.Password != account.Password)
            {
                existingAccount.Password = account.Password;
                return;
            }

            if (existingAccount != null)
            {
                return;
            }

            Accounts.Add(account);
        }
Exemplo n.º 2
0
 public void RemoveAccount(XivAccount account)
 {
     Accounts.Remove(account);
 }
Exemplo n.º 3
0
        public void UpdatePassword(XivAccount account, string password)
        {
            var existingAccount = Accounts.FirstOrDefault(a => a.Id == account.Id);

            existingAccount.Password = password;
        }