private DataSourceBackend() { // Avatar must be before Student, because Student needs the default avatarID AvatarBackend = AvatarBackend.Instance; StudentBackend = StudentBackend.Instance; ShopInventoryBackend = ShopInventoryBackend.Instance; SchoolCalendarBackend = SchoolCalendarBackend.Instance; SchoolDismissalSettingsBackend = SchoolDismissalSettingsBackend.Instance; }
/// <summary> /// Makes a new Student /// </summary> /// <param name="data"></param> /// <returns>Student Passed In</returns> public StudentModel Create(StudentModel data, DataSourceEnum dataSourceEnum = DataSourceEnum.Unknown) { StudentBackend.SetDataSource(DataSourceEnum.Mock); DataSet.Add(data); DataSet = DataSet.OrderBy(x => x.Name).ToList(); return(data); }
private DataSourceBackend() { // Avatar must be before Student, because Student needs the default avatar AvatarItemBackend = AvatarItemBackend.Instance; KioskSettingsBackend = KioskSettingsBackend.Instance; SchoolDismissalSettingsBackend = SchoolDismissalSettingsBackend.Instance; StudentBackend = StudentBackend.Instance; }
/// <summary> /// Makes a new Student /// </summary> /// <param name="data"></param> /// <returns>Student Passed In</returns> public StudentModel Create(StudentModel data, DataSourceEnum dataSourceEnum = DataSourceEnum.Unknown) { StudentBackend.SetDataSource(DataSourceEnum.Mock); DataSet.Add(data); var idResult = IdentityBackend.Instance.CreateNewStudentUserIdRecordOnly(data); DataSet = DataSet.OrderBy(x => x.Name).ToList(); return(data); }
private DataSourceBackend() { // Avatar must be before Student, because Student needs the default avatar AvatarItemBackend = AvatarItemBackend.Instance; FactoryInventoryBackend = FactoryInventoryBackend.Instance; GameBackend = GameBackend.Instance; KioskSettingsBackend = KioskSettingsBackend.Instance; SchoolCalendarBackend = SchoolCalendarBackend.Instance; SchoolDismissalSettingsBackend = SchoolDismissalSettingsBackend.Instance; IdentityBackend = IdentityBackend.Instance; StudentBackend = StudentBackend.Instance; }
private DataSourceBackend() { // Avatar must be before Student, because Student needs the default avatarID AvatarBackend = AvatarBackend.Instance; StudentBackend = StudentBackend.Instance; }
private DataSourceBackend() { StudentBackend = StudentBackend.Instance; }