コード例 #1
0
        internal SwitchCollectionItem AddGame(string name, string titleid, string titlekey)
        {
            SwitchCollectionItem item = new SwitchCollectionItem(name, titleid, titlekey);

            Collection.Add(item);
            return(item);
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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);
        }