Ejemplo n.º 1
0
        public BleLocatorViewModel()
        {
            _model = BleLocatorModel.Instance;
            _model.OnLogMessage             += InsertMessage;
            _model.OnConnectionStateChanged += OnConnectionStateChanged;
            _eventMapper = new EventMapper(_model.BleSystemConfiguration);

            _model.OnRegisteredTransmitterEvent += e => _eventMapper.HandleDiscoveryEvent(e);
        }
Ejemplo n.º 2
0
        public BleLocatorViewModel()
        {
            _model = BleLocatorModel.Instance;
            _model.OnLogMessage += InsertMessage;
            _model.OnConnectionStateChanged += OnConnectionStateChanged;
            _eventMapper = new EventMapper(_model.BleSystemConfiguration);

            _model.OnRegisteredTransmitterEvent += e => _eventMapper.HandleDiscoveryEvent(e);
        }