示例#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));
        }
示例#2
0
        private bool CharacteristicIsVisible(CharacteristicInfoViewModel characteristic)
        {
            if (!ShowCharacteristics)
            {
                return(false);
            }

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

            return(true);
        }
示例#3
0
 public void ClosePane()
 {
     SelectedCharacteristic = null;
 }