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; }
public override void RefreshData() { ClassModel = ClassesRealm.Get(ClassId); }