public Museum generateMuseum(String ID) { Museum museum = new Museum() { ID = ID, curatorID = this.curatorID, name = this.name, coverImmage = this.coverImmage, openingHours = this.openingHours, closingHours = this.closingHours, latitude = this.latitude, longitude = this.longitude, street = this.street, city = this.city, postalCode = this.postalCode }; if (pieces != null) { foreach (String pieceID in pieces.Keys) { Piece piece = pieces[pieceID].createPiece(pieceID); museum.pieces.Add(piece); } } return(museum); }
public Visit generateVisit(String ID, Museum parent) { return(new Visit(parent) { ID = ID, start = start, end = end }); }
public Visit(Museum parent) { start = DateTime.Now.Ticks; this.parent = parent; }
public DemoVisit(Museum parent) : base(parent) { base.parent = parent; base.parent.current = this; }