Exemple #1
0
 // Constructor for our calendar entry.
 public CalendarEntry(int key, DateTime start, DateTime end, string address, string comment, status status, Hearse hearse = null)
 {
     Key     = key;
     Start   = start;
     End     = end;
     Address = address;
     Comment = comment;
     Status  = status;
     Hearse  = hearse;
 }
Exemple #2
0
        public void CreateRustvogn(int pri, status status)
        {
            foreach (Hearse i in Rustvognen)
            {
                if (pri == i.Priority)
                {
                    throw new MemberAccessException();
                }
            }
            Hearse rustvogn = new Hearse(pri, status);

            Rustvognen.Add(rustvogn);
        }
        // Create a hearse object that takes two parameters
        public void CreateHearse(int prio, status status)
        {
            // For every hearse in the hearse list do ...
            foreach (Hearse i in Hearse)
            {
                if (prio == i.Priority)
                {
                    throw new MemberAccessException();
                }
            }
            Hearse hearse = new Hearse(prio, status);

            Hearse.Add(hearse);
        }
        //
        public void StartUpEvent(int key, DateTime start, DateTime end, string address, string comment, Hearse hearse = null)
        {
            CalendarEntry Event = new CalendarEntry(key, start, end, address, comment, status.UnChanged, hearse);

            AddEvent(Event);
        }
        // Creates hearse at startup
        public void StartUpHearse(int prio)
        {
            Hearse hearse = new Hearse(prio, status.UnChanged);

            Hearse.Add(hearse);
        }
 // Adds a hearse to the list
 public void AddHearse(Hearse hearse)
 {
     Hearse.Add(hearse);
 }
Exemple #7
0
        public void getRustvogn(int pri)
        {
            Hearse rustvogn = new Hearse(pri, status.UnChanged);

            Rustvognen.Add(rustvogn);
        }
Exemple #8
0
 public void AddRustvogn(Hearse rustvogn)
 {
     Rustvognen.Add(rustvogn);
 }