예제 #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;
 }