示例#1
0
            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);
            }
示例#2
0
 public Visit generateVisit(String ID, Museum parent)
 {
     return(new Visit(parent)
     {
         ID = ID,
         start = start,
         end = end
     });
 }
示例#3
0
 public Visit(Museum parent)
 {
     start       = DateTime.Now.Ticks;
     this.parent = parent;
 }
示例#4
0
 public DemoVisit(Museum parent) : base(parent)
 {
     base.parent         = parent;
     base.parent.current = this;
 }