public DataContext() { for (uint i = 0; i < 256; i++) { BattleItems.Add(new Item(0x37590 + i * 8)); } for (uint i = 0; i < 1024; i++) { OtherItems.Add(new Item(0x37D90 + i * 8)); } for (uint i = 0; i < 200; i++) { Charactors.Add(new Charactor(0x700 + i * 1062)); } for (uint i = 0; i < 120; i++) { Jewels.Add(new Jewel(0x46380 + i * 8)); } for (uint i = 0; i < 12; i++) { Party.Add(new Member(0x6D0 + i * 4)); } foreach (var info in Info.Instance().Places) { Places.Add(new Place(info)); } foreach (var info in Info.Instance().Minds) { Minds.Add(new MindQuest(info)); } foreach (var info in Info.Instance().Medals) { Medals.Add(new Medal(info)); } }
private void populateNavItems() { primaryItems.Clear(); secondaryItems.Clear(); // TODO WTS: Change the symbols for each item as appropriate for your app // More on Segoe UI Symbol icons: https://docs.microsoft.com/windows/uwp/style/segoe-ui-symbol-font // Or to use an IconElement instead of a Symbol see https://github.com/Microsoft/WindowsTemplateStudio/blob/master/docs/projectTypes/navigationpane.md // Edit String/en-US/Resources.resw: Add a menu item title for each page PrimaryItems.Add(PrismUnityApplication.Current.Container.Resolve <ShellNavigationViewModel>(new ResolverOverride[] { new ParameterOverride("label", "MyMusic".GetLocalized()), new ParameterOverride("symbol", "\uE189"), new ParameterOverride("pageIdentifier", "MyMusic") })); PrimaryItems.Add(PrismUnityApplication.Current.Container.Resolve <ShellNavigationViewModel>(new ResolverOverride[] { new ParameterOverride("label", "Playlists".GetLocalized()), new ParameterOverride("symbol", "\uE90B"), new ParameterOverride("pageIdentifier", "Playlist") })); PrimaryItems.Add(PrismUnityApplication.Current.Container.Resolve <ShellNavigationViewModel>(new ResolverOverride[] { new ParameterOverride("label", "Favorites".GetLocalized()), new ParameterOverride("symbol", "\uEB51"), new ParameterOverride("pageIdentifier", "Favorite") })); PrimaryItems.Add(PrismUnityApplication.Current.Container.Resolve <TuneInNavigationViewModel>(new ResolverOverride[] { new ParameterOverride("label", "TuneIn".GetLocalized()), new ParameterOverride("symbol", "\uEC05"), new ParameterOverride("pageIdentifier", "Radio") })); SecondaryItems.Add(PrismUnityApplication.Current.Container.Resolve <ManageZonesNavigationViewModel>(new ResolverOverride[] { new ParameterOverride("symbol", "\uE965"), new ParameterOverride("pageIdentifier", "Zone"), new ParameterOverride("secondPageIdentifier", "ManageZones") })); OtherItems.Add(PrismUnityApplication.Current.Container.Resolve <ShellNavigationViewModel>(new ResolverOverride[] { new ParameterOverride("label", "Settings".GetLocalized()), new ParameterOverride("symbol", "\uE115"), new ParameterOverride("pageIdentifier", "Settings") })); }
/// <summary> /// Creates the items. /// </summary> private void CreateItems() { SensorItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.Accelerometer }); SensorItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.Compass }); SensorItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.Gyroscope }); SensorItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.Inclinometer }); SensorItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.MotionApi }); SensorItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.OrientationSensor }); SensorItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.NFC }); CameraItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.PrimaryCamera }); CameraItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.PrimaryCameraFlash }); CameraItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.FrontCamera }); CameraItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.FrontCameraFlash }); BatteryAndPowerItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.BatteryStatusInfo }); BatteryAndPowerItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.ConnectedToExternalPowerSupply }); OtherItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.FMRadio }); OtherItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.SDCard }); OtherItems.Add(new BoolItemModel() { BooleanValue = false, HardwareFeatureText = AppResources.VibrationDevice }); ScreenResolution = AppResources.Waiting; DeviceTotalMemory = AppResources.Waiting; MemoryStatus = AppResources.Waiting; Manufacturer = AppResources.Waiting; Operator = AppResources.Waiting; Theme = AppResources.Waiting; }