예제 #1
0
        public void Initialize(int classLocalId)
        {
            var classesRealm  = new Domain.Services.Realms.Classes();
            var existingClass = classesRealm.Get(classLocalId);

            ClassName    = existingClass.Name;
            DaysIndex    = Days.IndexOf(existingClass.Day);
            StartTime    = new TimeSpan(existingClass.StartTime.Hour, existingClass.StartTime.Minute, 0);
            EndTime      = new TimeSpan(existingClass.EndTime.Hour, existingClass.EndTime.Minute, 0);
            IsNewClass   = false;
            ClassLocalId = classLocalId;
        }
예제 #2
0
 public override void RefreshData()
 {
     ClassModel = ClassesRealm.Get(ClassId);
 }