Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        private bool CharacteristicIsVisible(CharacteristicInfoViewModel characteristic)
        {
            if (!ShowCharacteristics)
            {
                return(false);
            }

            if (OnlyFavourites && !characteristic.Model.IsFavourite)
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 3
0
 public void ClosePane()
 {
     SelectedCharacteristic = null;
 }