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