Beispiel #1
0
        private static void LoadTimeLine(Schedule schedule, SQLiteCommand command)
        {
            command.CommandText = "select * from time_line";

            var reader = command.ExecuteReader();
            while (reader.Read())
            {
                var classtime = new ClassTime {Day = (Weekdays) reader["day"], Number = (int) reader["number"]};
                schedule.TimeLine.Add(classtime);
            }
            reader.Close();
        }
Beispiel #2
0
 protected bool Equals(ClassTime other)
 {
     return _number == other._number && _day == other._day;
 }
 public sClassTime(ClassTime time) : base(time)
 {
     Day    = time.Day;
     Number = time.Number;
 }
Beispiel #4
0
 public TimeCardViewModel(ClassTime time)
 {
     var i = time.Number;
     Time = i > ClassTime.ClassIntervals.Count() || i < 0 ? "Whenever" : ClassTime.ClassIntervals[time.Number];
 }
Beispiel #5
0
 protected bool Equals(ClassTime other)
 {
     return(_number == other._number && _day == other._day);
 }