internal SwitchCollectionItem AddGame(string name, string titleid, string titlekey) { SwitchCollectionItem item = new SwitchCollectionItem(name, titleid, titlekey); Collection.Add(item); return(item); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (!(obj is SwitchCollectionItem)) { return(false); } SwitchCollectionItem other = obj as SwitchCollectionItem; if (title == null && other.title == null) { return(true); } if (title == null || other.title == null) { return(false); } return(title.Equals(other.title)); }
internal SwitchCollectionItem AddGame(string name, string titleid, string titlekey, SwitchCollectionState state, bool isFavorite) { SwitchCollectionItem item = new SwitchCollectionItem(name, titleid, titlekey, state, isFavorite); Collection.Add(item); return(item); }