// Checks to make sure the selected device type cannot be a null value.
 public void SetSelectedDevice(NamedGuid selected)
 {
     // if the value has a relevent value, set the selectedDeviceType. If this is not the case display an error.
     if (selected != null)
     {
         this.selectedDeviceType = selected;
     }
     else
     {
         MessageHelper.DisplayBasicMessage(StringResources.InitialisationError);
     }
 }
        // Handle the event from the user selecting a service.
        internal async void HandleSelectedService(NamedGuid selected)
        {
            this.SelectedDeviceViewModel.CleanCharacteristics();

            // Get a list of supported characteristics and updat the viewmodel with the results.
            this.SelectedDeviceViewModel.SupportedCharacteristics = await this.selectedDevice.GetCharacteristics(selected);
            // Let the UI know that data has changed..
            this.RaisePropertyChanged("SelectedDeviceViewModel");
        }