public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (!this.GetType().Equals(obj.GetType()))
            {
                return(false);
            }
            GameDirectory d = obj as GameDirectory;

            return(d.Directory == this.Directory && d.GetGames().SequenceEqual(this.GetGames()));
        }
Example #2
0
 public bool RemoveGameDirectory(GameDirectory gameDirectory)
 {
     return(_gameDirectories.Remove(gameDirectory));
 }
Example #3
0
 public void AddGameDirectory(GameDirectory gameDirectory)
 {
     _gameDirectories.Add(gameDirectory);
 }