Ejemplo n.º 1
0
 public String RemoveRoom(String name)
 {
     for (int i = 0; i < conferenceList.Count; i++)
     {
         ConferenceRoom checkRoom = conferenceList.ElementAt(i);
         if (checkRoom.Name.Equals(name))
         {
             conferenceList.RemoveAt(i);
             return("Delete successful");
         }
     }
     return("Delete not successful");
 }
Ejemplo n.º 2
0
 public String EditRoom(ConferenceRoom room)
 {
     for (int i = 0; i < conferenceList.Count; i++)
     {
         ConferenceRoom checkRoom = conferenceList.ElementAt(i);
         if (checkRoom.Name.Equals(room.Name))
         {
             conferenceList[i] = room;
             return("Update successful");
         }
     }
     return("Update not successful");
 }
Ejemplo n.º 3
0
 public void Add(ConferenceRoom room)
 {
     conferenceList.Add(room);
 }