Exemplo n.º 1
0
        public static CourseTime FromString(string s)
        {
            CourseTime temp = new CourseTime();

            string[] ts = s.Split('-');
            temp.WeekDay = (DAYS)Convert.ToInt32(ts[0]);
            temp.DayTime = (TERM)Convert.ToInt32(ts[1]);
            return(temp);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            CourseTime time = (CourseTime)obj;

            return(time.DayTime.Equals(DayTime) && time.WeekDay.Equals(WeekDay));
        }