public DashboardPage()
        {
            this.InitializeComponent();
            CompositionTarget.Rendering += CompositionTarget_Rendering;

            settings = new Settings();

            MinHeartBpm = 250;  // Set a very high value

            sensorTimer = new DispatcherTimer();
            sensorTimer.Interval = new TimeSpan(0, 0, 0, 0, 10);    // Tick for the "drawing loop"
            sensorTimer.Tick += SensorTimer_Tick;

            heartRateStoryboard.Begin();

            // Instance of the Microsoft Band
            band = new Band()
            {
                SessionTrackInterval = (int)settings.Data.sessionTrackInterval
            };

            // Set the LineGraphCanvas controls
            accelerometerLineGraphCanvas.Label = "Accelerometer";
            accelerometerLineGraphCanvas.AddLineGraph(0.0, "X", new SolidColorBrush(Windows.UI.Colors.White));
            accelerometerLineGraphCanvas.AddLineGraph(-10.0, "Y", (SolidColorBrush)Resources["SystemControlHighlightAccentBrush"]);
            accelerometerLineGraphCanvas.AddLineGraph(10.0, "Z", new SolidColorBrush(Windows.UI.Colors.Gray));

            gyroscopeLineGraphCanvas.Label = "Gyroscope (angular vel.)";
            gyroscopeLineGraphCanvas.AddLineGraph(0.0, "X", new SolidColorBrush(Windows.UI.Colors.White));
            gyroscopeLineGraphCanvas.AddLineGraph(-10.0, "Y", (SolidColorBrush)Resources["SystemControlHighlightAccentBrush"]);
            gyroscopeLineGraphCanvas.AddLineGraph(10.0, "Z", new SolidColorBrush(Windows.UI.Colors.Gray));
        }
        public SettingsPage()
        {
            this.InitializeComponent();

            settings = new Settings();

            // We add the value changed event after loading the previously saved values, if not this event will be triggered when loading the xaml
            // and the value will always be the one set as the slider minimum property
            slider.ValueChanged += slider_ValueChanged;
        }
Example #3
0
        string sp;  // Separator for each column

        public SessionExport()
        {
            settings = new Settings();
            sp = settings.GetStringFileSeparator();
        }