private CharacteristicViewModel GetOrCreateCharacteristicViewModel(CharacteristicInfoViewModel characteristic) { if (_characteristicsCached.ContainsKey(characteristic.Model.Uuid)) { return(_characteristicsCached[characteristic.Model.Uuid]); } return(_characteristicsCached[characteristic.Model.Uuid] = new CharacteristicViewModel(characteristic.Model)); }
private bool CharacteristicIsVisible(CharacteristicInfoViewModel characteristic) { if (!ShowCharacteristics) { return(false); } if (OnlyFavourites && !characteristic.Model.IsFavourite) { return(false); } return(true); }
public void ClosePane() { SelectedCharacteristic = null; }