public ThermostatViewModel(ThermostatContext context)
 {
     this.context  = context;
     Thermostats   = new ObservableCollection <Thermostat>();
     BarcodeNumber = context.GetFirstFreeBarcodeNumber();
     GetAll();
 }