public void AddLocTime(string InputName, LocTime InputLocTime) { foreach (var course in CourseCollection) { if (course.Name.Equals(InputName)) { course.AddLocTime(InputLocTime); } } }
public void DeleteLocTime(int Tag) { LocTime DeletingLocTime = new LocTime(); foreach (var loctime in LocTimes) { if (loctime.Tag == Tag) { DeletingLocTime = loctime; } } LocTimes.Remove(DeletingLocTime); SimpleIoc.Default.GetInstance <DatabaseService>().DelLocTime(Name, DeletingLocTime.Location, DeletingLocTime.Week, DeletingLocTime.WeekDay, DeletingLocTime.BeginTime, DeletingLocTime.EndTime); }
public void AddLocTime(LocTime InputLocTime) { LocTimes.Add(new LocTime(InputLocTime.Location, InputLocTime.Week, InputLocTime.WeekDay, InputLocTime.BeginTime, InputLocTime.EndTime, TagGenerator++)); }