Exemplo n.º 1
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            var id   = e.Parameter as int?;
            var data = await DataSources.GetItemAsync(id.GetValueOrDefault());

            pulse.Text    = data.Pulse.ToString();
            lowPres.Text  = data.LowPressure.ToString();
            highPres.Text = data.LowPressure.ToString();
            temp.Text     = data.Temp.ToString();
            date.Text     = data.Date.Date.ToString();
        }