/// <summary> /// Add one account item. /// </summary> /// <param name="accountItem">The item to add.</param> public void Add(AccountItem accountItem) { if (accountItem != null) { accountItemList.Add(accountItem); } }
public void Edit(AccountItem accountItem) { int index = accountItemList.IndexOf(accountItem); if (index >= 0) { accountItemList[index] = accountItem; } }
public bool Equals(AccountItem accountItem) { return(this.Name == accountItem.Name); }