MotivaTED/Views/HealthView.xaml.cs
/// <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>
Invoked when this page is about to be displayed in a Frame.
Invoked when this page is about to be displayed in a Frame .
protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if (ApplicationData.Current.LocalSettings.Values.ContainsKey("Age"))
            {
                age = (int)(ApplicationData.Current.LocalSettings.Values["Age"]);
            }
            if (age < 100) 
            {
                Step1Done.Visibility = Windows.UI.Xaml.Visibility.Visible;
            }
            if (model.Main.BandClient != null)
            {
                Step2Done.Visibility = Windows.UI.Xaml.Visibility.Visible;
            }
            if (App.BluetoothManager.State == ArduinoBluetooth.Connection.BluetoothConnectionState.Connected)
            {
                Step3Done.Visibility = Windows.UI.Xaml.Visibility.Visible;
            }
        }
protected override void OnNavigatedTo ( NavigationEventArgs e ) { if ( ApplicationData . Current . LocalSettings . Values . ContainsKey ( " " ) ) { age = ( int ) ( ApplicationData . Current . LocalSettings . Values [ " " ] ) ; } if ( age < 100 ) { Step1Done . Visibility = Windows . UI . Xaml . Visibility . Visible ; } if ( model . Main . BandClient != null ) { Step2Done . Visibility = Windows . UI . Xaml . Visibility . Visible ; } if ( App . BluetoothManager . State == ArduinoBluetooth . Connection . BluetoothConnectionState . Connected ) { Step3Done . Visibility = Windows . UI . Xaml . Visibility . Visible ; } }
Invoked when this page is about to be displayed in a Frame.
Invoked when this page is about to be displayed in a Frame .
//Configured Age //default is 100 //Configured band //Configure teddy
e
NavigationEventArgs
Event data that describes how this page was reached.
This parameter is typically used to configure the page.
Event data that describes how this page was reached . This parameter is typically used to configure the page .