Example #1
0
 private void InitialControls()
 {
     appBarPage             = new AppBarControl();
     deviceSelectionControl = new DeviceSelectionFlyoutControl();
     errorMessageFlyout     = new ErrorMessageFlyout();
     RegisterDeviceSelectionControl();
 }
		private async void InitialControls()
		{
			appBarPage = new AppBarControl();
			deviceSelectionControl = new DeviceSelectionFlyoutControl();
			errorMessageFlyout = new ErrorMessageFlyout();
			this.GlucoseMonitorViewModel = GlucoseMonitorViewModel.GetGlucoseMonitorViewModel();
			this.DataContext = GlucoseMonitorViewModel;
			RegisterDeviceSelectionControl();
			var chosenDevice = GlucoseMonitorViewModel.chosenDevice;
			if(chosenDevice != null
				&& chosenDevice.ConnectionStatus == BluetoothConnectionStatus.Connected
				&& GlucoseMonitorViewModel.IsServiceStarted)
			{
				await StartedModelUI();
			}
			if(chosenDevice != null 
				&& chosenDevice.ConnectionStatus == BluetoothConnectionStatus.Disconnected
				&& GlucoseMonitorViewModel.IsServiceStarted)
			{
				GlucoseMonitorViewModel.StopServices();
			}
		}
		private void InitialControls()
		{
			appBarPage = new AppBarControl();
			deviceSelectionControl = new DeviceSelectionFlyoutControl();
			errorMessageFlyout = new ErrorMessageFlyout();
			this.BloodPressureMonitorViewModel = BloodPressureMonitorViewModel.GetBloodPressureMonitorViewModel();
			this.DataContext = BloodPressureMonitorViewModel;
			RegisterDeviceSelectionControl();
			var chosenDevice = BloodPressureMonitorViewModel.chosenDevice;
			if (chosenDevice != null
				&& chosenDevice.ConnectionStatus == BluetoothConnectionStatus.Connected
				&& BloodPressureMonitorViewModel.IsServiceStarted)
			{
				StartedModelUI();
			}
			//if (chosenDevice != null
			//	&& chosenDevice.ConnectionStatus == BluetoothConnectionStatus.Disconnected
			//	&& BloodPressureMonitorViewModel.IsServiceStarted)
			//{
			//	//GlucoseMonitorViewModel.StopServices();
			//}
		}
Example #4
0
        private async void InitialControls()
        {
            appBarPage                   = new AppBarControl();
            deviceSelectionControl       = new DeviceSelectionFlyoutControl();
            errorMessageFlyout           = new ErrorMessageFlyout();
            this.GlucoseMonitorViewModel = GlucoseMonitorViewModel.GetGlucoseMonitorViewModel();
            this.DataContext             = GlucoseMonitorViewModel;
            RegisterDeviceSelectionControl();
            var chosenDevice = GlucoseMonitorViewModel.chosenDevice;

            if (chosenDevice != null &&
                chosenDevice.ConnectionStatus == BluetoothConnectionStatus.Connected &&
                GlucoseMonitorViewModel.IsServiceStarted)
            {
                await StartedModelUI();
            }
            if (chosenDevice != null &&
                chosenDevice.ConnectionStatus == BluetoothConnectionStatus.Disconnected &&
                GlucoseMonitorViewModel.IsServiceStarted)
            {
                GlucoseMonitorViewModel.StopServices();
            }
        }
        private void InitialControls()
        {
            appBarPage                         = new AppBarControl();
            deviceSelectionControl             = new DeviceSelectionFlyoutControl();
            errorMessageFlyout                 = new ErrorMessageFlyout();
            this.BloodPressureMonitorViewModel = BloodPressureMonitorViewModel.GetBloodPressureMonitorViewModel();
            this.DataContext                   = BloodPressureMonitorViewModel;
            RegisterDeviceSelectionControl();
            var chosenDevice = BloodPressureMonitorViewModel.chosenDevice;

            if (chosenDevice != null &&
                chosenDevice.ConnectionStatus == BluetoothConnectionStatus.Connected &&
                BloodPressureMonitorViewModel.IsServiceStarted)
            {
                StartedModelUI();
            }
            //if (chosenDevice != null
            //	&& chosenDevice.ConnectionStatus == BluetoothConnectionStatus.Disconnected
            //	&& BloodPressureMonitorViewModel.IsServiceStarted)
            //{
            //	//GlucoseMonitorViewModel.StopServices();
            //}
        }
		private void InitialControls()
		{
			appBarPage = new AppBarControl();
			deviceSelectionControl = new DeviceSelectionFlyoutControl();
			errorMessageFlyout = new ErrorMessageFlyout();
			RegisterDeviceSelectionControl();
		}
		private void RegisterControls()
		{
			appBarPage = new AppBarControl();
			deviceSelectionControl = new DeviceSelectionFlyoutControl();
			buttonSelectionControl = new ControlButtonSelectionFlyoutControl();
		}
 private void RegisterControls()
 {
     appBarPage             = new AppBarControl();
     deviceSelectionControl = new DeviceSelectionFlyoutControl();
     buttonSelectionControl = new ControlButtonSelectionFlyoutControl();
 }