コード例 #1
0
        /// <summary>
        /// Clear the Data List, and build up a new one
        /// </summary>
        /// <returns></returns>
        public List <HistoryAppModel> GetDefaultDataSet()
        {
            DataList.Clear();

            // get list of phones
            PhoneBackend      PhoneBackend = PhoneBackend.Instance;
            List <PhoneModel> PhoneList    = PhoneBackend.Index();

            // get list of app versions
            VersionAppBackend      VersionAppBackend = VersionAppBackend.Instance;
            List <VersionAppModel> VersionAppList    = VersionAppBackend.Index();

            // phone 0
            DataList.Add(new HistoryAppModel {
                PhoneID = PhoneList[0].ID, VersionAppID = VersionAppList[0].ID, ID = "1cfe60ec-a6b2-4721-9fd6-978aa7bc0882"
            });                                                                                                                                                // Default
            DataList.Add(new HistoryAppModel {
                PhoneID = PhoneList[0].ID, VersionAppID = VersionAppList[1].ID
            });
            DataList.Add(new HistoryAppModel {
                PhoneID = PhoneList[0].ID, VersionAppID = VersionAppList[2].ID
            });
            DataList.Add(new HistoryAppModel {
                PhoneID = PhoneList[0].ID, VersionAppID = VersionAppList[3].ID
            });

            return(DataList);
        }
コード例 #2
0
        // Add YourName Above Here  #1


        private DataSourceBackend()
        {
            ExampleBackend    = ExampleBackend.Instance;
            PhotoBackend      = PhotoBackend.Instance;
            ClinicBackend     = ClinicBackend.Instance;
            ResultLogBackend  = ResultLogBackend.Instance;
            ResultDataBackend = ResultDataBackend.Instance;
            PhoneBackend      = PhoneBackend.Instance;
            TechnicianBackend = TechnicianBackend.Instance;
            InventoryBackend  = InventoryBackend.Instance;
            VersionOSBackend  = VersionOSBackend.Instance;
            VersionAppBackend = VersionAppBackend.Instance;
            HistoryOSBackend  = HistoryOSBackend.Instance;
            HistoryAppBackend = HistoryAppBackend.Instance;
            // Add YourName Above Here #2
        }