private void SendReadMeasurements()
        {
            var msg = new MvvmMessage()
            {
                Data = _DataFromThingSpeak
            };

            Messenger.Default.Send <MvvmMessage>(msg);
        }
Example #2
0
        private void SelectNumberAction(int selectedNumber)
        {
            var msg = new MvvmMessage()
            {
                SelectedWindow = selectedNumber
            };

            Messenger.Default.Send <MvvmMessage>(msg);
        }
Example #3
0
 private void HandleMessage(MvvmMessage message)
 {
     if (message.Data != null)
     {
         TemperatureButtonIsEnabled = true;
         HumidityButtonIsEnabled    = true;
         PressureButtonIsEnabled    = true;
     }
 }
Example #4
0
 private void HandleMessage(MvvmMessage message)
 {
     if (message.Data != null)
     {
         _DataFromThingSpeak = message.Data;
         Timer.Start();
     }
     _SelectedWindow = message.SelectedWindow;
     RedrawGraph(_SelectedWindow);
     CurrentPlotModel.ResetAllAxes();
     CurrentPlotModel.InvalidatePlot(true);
 }