Beispiel #1
0
        /// <summary>
        /// Get the camping that belongs to an event
        /// </summary>
        /// <returns>True if camping exist in databse false if not</returns>
        public bool GetCamping()
        {
            Camping Camping = DatabaseCreateEvent.GetCamping(this.Location);

            if (Camping != null)
            {
                this.Camping = Camping;
                return(true);
            }
            else
            {
                return(false);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Used to get a Event to the database
 /// </summary>
 /// <param name="ID">The ID of an event as int<param>
 /// <param name="Name">The name of the event as string<param>
 /// <param name="Description">The description of the event as string</param>
 /// <param name="Location">The location an event takes place as string</param>
 /// <param name="Maxvisitors">The maximum amount of visitors as int<param>
 /// <param name="Date">The date an event takes place as DateTime</param>
 /// <param name="Account">The account that made the event as Account object</param>
 /// <param name="Timelime">The timeline of an event as TimeLine object</param>
 /// <param name="Camping">The camping that belongs to the event as Camping object</param>
 public Event(int ID, string Name, string Description, string Location, int MaxVisitors, DateTime Date, Account Account, Camping Camping, TimeLine Timeline)
 {
     this.ID          = ID;
     this.Name        = Name;
     this.Description = Description;
     this.Location    = Location;
     this.MaxVisitors = MaxVisitors;
     this.Date        = Date;
     this.Account     = Account;
     this.Camping     = Camping;
     this.TimeLine    = Timeline;
 }