コード例 #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 void OnNavigatedTo(NavigationEventArgs e)
        {
            var localSaved = Windows.Storage.ApplicationData.Current.LocalSettings;

            _language = localSaved.Values["Language"].ToString();
            if (_language == "nl")
            {
                UiDutch();
            }
            else
            {
                UiFrench();
            }
            if (localSaved.Values["TempControlReport"] == null)
            {
                return;
            }
            _controlReport      = JsonConvert.DeserializeObject <ControlReport>(localSaved.Values["TempControlReport"].ToString());
            _selectedLocation   = JsonConvert.DeserializeObject <Location>(localSaved.Values["Templocation"].ToString());
            _selectedMatis      = JsonConvert.DeserializeObject <Matis>(localSaved.Values["TempMatis"].ToString());
            txtName.Text        = _controlReport.user;
            txtHour.Text        = _controlReport.matisServiceTime.ToString();
            btnLocation.Content = _selectedLocation.name;
            btnMatis.Content    = _selectedMatis.name;
            btnMatis.IsEnabled  = true;
            btnStart.IsEnabled  = true;
        }
コード例 #2
0
 private void ListPickerMatis_ItemsPicked(ListPickerFlyout sender, ItemsPickedEventArgs args)
 {
     _selectedMatis     = (Matis)ListPickerMatis.SelectedItem;
     btnMatis.Content   = _selectedMatis.name;
     btnStart.IsEnabled = true;
 }