예제 #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;
        }
예제 #2
0
파일: Event.cs 프로젝트: garygsw/Camphor
 //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);
 }