private AboutPageViewModel CreateAboutPageViewModel() { var aboutPageViewModel = new AboutPageViewModel(); SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary[ABOUT_PIVOTITEM] = aboutPageViewModel; return(aboutPageViewModel); }
private UARTSettingPageViewModel CreateUARTSettingViewModel() { var uARTSettingViewModel = new UARTSettingPageViewModel(); SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary[UART_SETTING] = uARTSettingViewModel; return(uARTSettingViewModel); }
private BloodPressureMonitorSettingPageViewModel CreateBloodPressureMonitorSettingViewModel() { var bloodPressureMonitorSettingPageViewModel = new BloodPressureMonitorSettingPageViewModel(); SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary[BPM_SETTING] = bloodPressureMonitorSettingPageViewModel; return(bloodPressureMonitorSettingPageViewModel); }
private ProximitySettingPageViewModel CreateProximitySettingViewModel() { var proximitySettingPageViewModel = new ProximitySettingPageViewModel(); SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary[PROXIMITY_SETTING] = proximitySettingPageViewModel; return(proximitySettingPageViewModel); }
private DeviceFirmwareUpdateSettingPageViewModel CreateDFUSettingPageViewModel() { var deviceFirmwareUpdateSettingPageViewModel = new DeviceFirmwareUpdateSettingPageViewModel(); SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary[DEVICE_FIRMWARE_UPDATE_SETTING] = deviceFirmwareUpdateSettingPageViewModel; return(deviceFirmwareUpdateSettingPageViewModel); }
private HeartRateMonitorSettingPageViewModel CreateHeartRateMonitorSettingViewModel() { var heartRateMonitorSettingViewModel = new HeartRateMonitorSettingPageViewModel(); SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary[HEART_RATE_MONITOR_SETTING] = heartRateMonitorSettingViewModel; return(heartRateMonitorSettingViewModel); }
private GlucoseMonitorSettingPageViewModel CreateGlucoseMonitorSettingViewModel() { var glucoseMonitorSettingViewModel = new GlucoseMonitorSettingPageViewModel(); SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary[BGM_SETTING] = glucoseMonitorSettingViewModel; return(glucoseMonitorSettingViewModel); }
internal BloodPressureMonitorSettingPageViewModel GetBloodPressureMeasurementViewModel() { object viewModel; if (SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary.TryGetValue(BPM_SETTING, out viewModel)) { return(viewModel as BloodPressureMonitorSettingPageViewModel); } else { return(CreateBloodPressureMonitorSettingViewModel()); } }
internal GlucoseMonitorSettingPageViewModel GetGlucoseMonitorViewModel() { object viewModel; if (SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary.TryGetValue(BGM_SETTING, out viewModel)) { return(viewModel as GlucoseMonitorSettingPageViewModel); } else { return(CreateGlucoseMonitorSettingViewModel()); } }
internal UARTSettingPageViewModel GetUartSettingViewModel() { object viewModel; if (SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary.TryGetValue(UART_SETTING, out viewModel)) { return(viewModel as UARTSettingPageViewModel); } else { return(CreateUARTSettingViewModel()); } }
internal AboutPageViewModel GetAboutPageViewModel() { object viewModel; if (SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary.TryGetValue(ABOUT_PIVOTITEM, out viewModel)) { return(viewModel as AboutPageViewModel); } else { return(CreateAboutPageViewModel()); } }
internal ProximitySettingPageViewModel GetProximitySettingViewModel() { object viewModel; if (SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary.TryGetValue(PROXIMITY_SETTING, out viewModel)) { return(viewModel as ProximitySettingPageViewModel); } else { return(CreateProximitySettingViewModel()); } }
internal HeartRateMonitorSettingPageViewModel GetHeartRateMonitorSettingViewModel() { object viewModel; if (SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary.TryGetValue(HEART_RATE_MONITOR_SETTING, out viewModel)) { return(viewModel as HeartRateMonitorSettingPageViewModel); } else { return(CreateHeartRateMonitorSettingViewModel()); } }
internal DeviceFirmwareUpdateSettingPageViewModel GetDeviceFirmwareUpdateSettingPageViewModel() { object viewModel; if (SettingPivotViewModel.GetInstance().SettingPageViewModelDictionary.TryGetValue(DEVICE_FIRMWARE_UPDATE_SETTING, out viewModel)) { return(viewModel as DeviceFirmwareUpdateSettingPageViewModel); } else { return(CreateDFUSettingPageViewModel()); } }
internal async void LoadDFUSettings() { dfuSettingViewModel = SettingPivotViewModel.GetInstance().GetDeviceFirmwareUpdateSettingPageViewModel(); this.SelectedDeviceFirmwareTypeName = dfuSettingViewModel.SelectedDeviceFirmwareTypeName == null ? "Image type:" : dfuSettingViewModel.SelectedDeviceFirmwareTypeName; foreach (var token in dfuSettingViewModel.FileToken.Values) { if (StorageApplicationPermissions.FutureAccessList.ContainsItem(token)) { var file = await StorageApplicationPermissions.FutureAccessList.GetFileAsync(token); this.ChosenFiles.Add(file); } } this.ImageFileNames = dfuSettingViewModel.GetShortFileName(); if (!IsImagesReadyToSend()) { await UpdateDFUStatus(DeviceFirmwareUpdateStatusEnum.FILES_NOT_CHOSEN); } else { await UpdateDFUStatus(DeviceFirmwareUpdateStatusEnum.READY); } }