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()));
        }
示例#2
0
 public bool RemoveGameDirectory(GameDirectory gameDirectory)
 {
     return(_gameDirectories.Remove(gameDirectory));
 }
示例#3
0
 public void AddGameDirectory(GameDirectory gameDirectory)
 {
     _gameDirectories.Add(gameDirectory);
 }