//private DispatcherTimer dispatcherTimer; #endregion Fields public MainViewModel() { if (MainViewModel.Instance == null) { MainViewModel.Instance = this; //this.InitialiseViewModel(); this.InitializeFileManager(); this.SendZipCommand = new RelayCommand <Zip>(this.SendZipExecute); this.SelectAllCommand = new RelayCommand(this.SelectAllExecute); this.DeleteZipCommand = new RelayCommand <Zip>(this.DeleteZipExecute); this.DeleteZipListCommand = new RelayCommand(this.DeleteZipListExecute); this.CancelSendLMUCommand = new RelayCommand(this.CancelSendLMUExecute); this.RefreshCommand = new RelayCommand(this.RefreshExecute, () => !this.IsScanning); this.SendLMUCommand = new RelayCommand(this.SendLMUExecute, () => this.canSendLMU); this.StartOrStopListenCommand = new RelayCommand(this.StartOrStopListenExecute); _serviceClassId = new Guid("fa87c0d0-afac-11de-8a39-0800200c9a66"); var listener = new ReceiverBluetoothService(); _receiverBluetoothService = listener; _receiverBluetoothService.PropertyChanged += ReceiverBluetoothService_PropertyChanged; _receiverBluetoothService.ListnerStopped += OnReceiverBluetoothServiceListnerStopped; } }
public BluetoothDevice(FoundBluetoothDevice device, string deviceName, string deviceAddress) : base(deviceName, deviceAddress) { BluetoothService = new ReceiverBluetoothService(); FoundBluetoothDevice = device; AllTemperatureReadings = new List <double>(); }