Exemplo n.º 1
0
        public int AddProgram(string name, DateTime startTime, DateTime endTime, string description, int eventId)
        {
            // FUNCTION: Add a new program
            // PRE-CONDITIONS:
            // POST-CONDITIONS:
            Programs program = new Programs();
            program.description = description;
            program.name = name;
            program.startTime = startTime;
            program.endTime = endTime;
            server.GetEvent(eventId).AddProgram(program);

            return program.programId;
        }
Exemplo n.º 2
0
 //programLists add/delete/edit
 public void AddProgram(Programs newProgram)
 {
     // FUNCTION: Add new program to the list
     // PRE-CONDITIONS:
     // POST-CONDITIONS:
     newProgram.programId = this.programId++;
     programList.Add(newProgram);
 }