示例#1
0
 public void RemoveClass(string className)
 {
     if ((TitlesTaught.Contains(className)))
     {
         TitlesTaught.Remove(className);
     }
 }
示例#2
0
 public void AddClass(string className)
 {
     //check if class name is there
     if (!(TitlesTaught.Contains(className)))
     {
         TitlesTaught.Add(className);
     }
 }
示例#3
0
 public void AddClass(string className)
 {
     //check if class name is there
     if (!(TitlesTaught.Contains(className)) && ((TitlesTaught == null) || (TitlesTaught.Count < ClassLimit)))
     {
         TitlesTaught.Add(className);
     }
 }