예제 #1
0
 public void AddLocTime(string InputName, LocTime InputLocTime)
 {
     foreach (var course in CourseCollection)
     {
         if (course.Name.Equals(InputName))
         {
             course.AddLocTime(InputLocTime);
         }
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
 public void AddLocTime(LocTime InputLocTime)
 {
     LocTimes.Add(new LocTime(InputLocTime.Location, InputLocTime.Week, InputLocTime.WeekDay, InputLocTime.BeginTime, InputLocTime.EndTime, TagGenerator++));
 }