Пример #1
0
 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;
 }
Пример #2
0
        /// <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);
        }
Пример #3
0
        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;
        }
Пример #4
0
        /// <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);
        }
Пример #5
0
        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;
        }
Пример #6
0
 private DataSourceBackend()
 {
     // Avatar must be before Student, because Student needs the default avatarID
     AvatarBackend  = AvatarBackend.Instance;
     StudentBackend = StudentBackend.Instance;
 }
Пример #7
0
 private DataSourceBackend()
 {
     StudentBackend = StudentBackend.Instance;
 }