Esempio n. 1
0
		void OnHeartRateUpdated (object sender, HeartBeatEventArgs e)
		{
			heartRateUnitLabel.Hidden = false;
			heartRateLabel.Hidden = false;
			heartRateLabel.Text = e.CurrentHeartBeat.Rate.ToString();

			var monitor = (HeartRateMonitor)sender;
			if (monitor.Location == HeartRateMonitorLocation.Unknown) {
				statusLabel.Text = "Connected";
			} else {
				statusLabel.Text = String.Format ("Connected on {0}", monitor.Location);
			}

			deviceNameLabel.Hidden = false;
			deviceNameLabel.Text = monitor.Name;
		}
        void OnHeartRateUpdated(object sender, HeartBeatEventArgs e)
        {
            heartRateUnitLabel.Hidden = false;
            heartRateLabel.Hidden     = false;
            heartRateLabel.IntValue   = e.CurrentHeartBeat.Rate;

            var monitor = (HeartRateMonitor)sender;

            if (monitor.Location == HeartRateMonitorLocation.Unknown)
            {
                statusLabel.StringValue = "Connected";
            }
            else
            {
                statusLabel.StringValue = String.Format("Connected on {0}", monitor.Location);
            }
        }
Esempio n. 3
0
        void OnHeartRateUpdated(object sender, HeartBeatEventArgs e)
        {
            heartRateUnitLabel.Hidden = false;
            heartRateLabel.Hidden     = false;
            heartRateLabel.Text       = e.CurrentHeartBeat.Rate.ToString();

            var monitor = (HeartRateMonitor)sender;

            if (monitor.Location == HeartRateMonitorLocation.Unknown)
            {
                statusLabel.Text = "Connected";
            }
            else
            {
                statusLabel.Text = String.Format("Connected on {0}", monitor.Location);
            }

            deviceNameLabel.Hidden = false;
            deviceNameLabel.Text   = monitor.Name;
        }