Ejemplo n.º 1
0
        public Tuple <string, string, int> GetPieceInf(string PieceName)
        {
            Masterpiece Target        = MyModel.GetPieceByName(PieceName);
            string      CreationPlace = Target.GetCreationPlace();

            return(new Tuple <string, string, int>(Target.GetAuthor(), CreationPlace, Target.CreationDate));
        }
Ejemplo n.º 2
0
 public void AddMasterpiece(string PieceName, string CityName, string AuthorName, int Date)
 {
     if (PieceName != null && !MasterpiecesContains(PieceName))
     {
         Masterpiece NewPiece = new Masterpiece(PieceName, GetCityByName(CityName), GetAuthorByName(AuthorName),Date);
         Artworks.Add(NewPiece);
         Cities.Find(x => x == GetCityByName(CityName)).AddArtWork(NewPiece);
         Authors.Find(x => x == GetAuthorByName(AuthorName)).AddArtWork(NewPiece);
     }
 }
Ejemplo n.º 3
0
 public void AddArtWork(Masterpiece NewPiece)
 {
     ArtWorks.Add(NewPiece);
 }
Ejemplo n.º 4
0
Archivo: City.cs Proyecto: VASAVASAV/AI
 public void AddArtWork(Masterpiece NewPiece)
 {
     ArtworksStored.Add(NewPiece);
 }