Esempio n. 1
0
        private void rbBike_Unchecked(object sender, RoutedEventArgs e)
        {
            chkExtraBike.IsEnabled     = true;
            chkExtraExtra.IsEnabled    = true;
            btnMinus.IsEnabled         = true;
            btnPlus.IsEnabled          = true;
            txtStartingPoint.IsEnabled = true;


            txtStartingPoint.Text        = Tombstoning.Load <string>("txtStartingPoint");
            tbNumberOfZonesSelected.Text = tempLastNumberOfZones;

            string extraBikeBillet = Tombstoning.Load <string>("chkExtraBikeChecked");

            if (!string.IsNullOrEmpty(extraBikeBillet))
            {
                if (extraBikeBillet.ToLower() == "true")
                {
                    chkExtraBike.IsChecked = true;
                }
            }

            string extraExtraBillet = Tombstoning.Load <string>("chkExtraExtraChecked");

            if (!string.IsNullOrEmpty(extraExtraBillet))
            {
                if (extraExtraBillet.ToLower() == "true")
                {
                    chkExtraExtra.IsChecked = true;
                }
            }

            EnableCreateMessageButtonBillet();
        }
Esempio n. 2
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            #region Billet
            string startingPoint = Tombstoning.Load <string>("StartingPoint");

            if (!string.IsNullOrEmpty(startingPoint))
            {
                txtStartingPoint.Text = startingPoint;
            }

            string numberOfZonesSelected = Tombstoning.Load <string>("tbNumberOfZonesSelected");

            if (!string.IsNullOrEmpty(numberOfZonesSelected))
            {
                tbNumberOfZonesSelected.Text = numberOfZonesSelected;
            }

            string adultBillet = Tombstoning.Load <string>("rbAdult");
            if (!string.IsNullOrEmpty(adultBillet))
            {
                if (adultBillet.ToLower() == "true")
                {
                    rbAdult.IsChecked = true;
                }
            }

            string childBillet = Tombstoning.Load <string>("rbChild");
            if (!string.IsNullOrEmpty(childBillet))
            {
                if (childBillet.ToLower() == "true")
                {
                    rbChild.IsChecked = true;
                }
            }

            string bikeBillet = Tombstoning.Load <string>("rbBike");
            if (!string.IsNullOrEmpty(bikeBillet))
            {
                if (bikeBillet.ToLower() == "true")
                {
                    rbBike.IsChecked = true;
                }
            }

            string extraBikeBillet = Tombstoning.Load <string>("chkExtraBike");
            if (!string.IsNullOrEmpty(extraBikeBillet))
            {
                if (extraBikeBillet.ToLower() == "true")
                {
                    chkExtraBike.IsChecked = true;
                }
            }

            string extraExtraBillet = Tombstoning.Load <string>("chkExtraExtra");
            if (!string.IsNullOrEmpty(extraExtraBillet))
            {
                if (extraExtraBillet.ToLower() == "true")
                {
                    chkExtraExtra.IsChecked = true;
                }
            }

            #endregion

            #region Klippekort
            string startingPointKlippeKort = Tombstoning.Load <string>("txtStartingPointKlippeKort");
            if (!string.IsNullOrEmpty(startingPointKlippeKort))
            {
                txtStartingPointKlippeKort.Text = startingPointKlippeKort;
            }

            string numberOfZonesSelectedKlippeKort = Tombstoning.Load <string>("tbNumberOfZonesSelectedKlippeKort");
            if (!string.IsNullOrEmpty(numberOfZonesSelectedKlippeKort))
            {
                tbNumberOfZonesSelectedKlippeKort.Text = numberOfZonesSelectedKlippeKort;
            }

            string adultKlippeKort = Tombstoning.Load <string>("rbAdultKlippeKort");
            if (!string.IsNullOrEmpty(adultKlippeKort))
            {
                if (adultKlippeKort.ToLower() == "true")
                {
                    rbAdultKlippeKort.IsChecked = true;
                }
            }

            string childKlippeKort = Tombstoning.Load <string>("rbChildKlippeKort");
            if (!string.IsNullOrEmpty(childKlippeKort))
            {
                if (childKlippeKort.ToLower() == "true")
                {
                    rbChildKlippeKort.IsChecked = true;
                }
            }

            string createMessageKlippeKort = Tombstoning.Load <string>("btnCreateMessageKlippeKort");
            if (!string.IsNullOrEmpty(createMessageKlippeKort))
            {
                if (createMessageKlippeKort.ToLower() == "true")
                {
                    btnCreateMessageKlippeKort.IsEnabled = true;
                }
            }

            #endregion


            //int panoramaControlSelectedItem = Tombstoning.Load<int>("panoramaControlSelectedItem");
            //panoramaControl.DefaultItem = panoramaControl.Items[panoramaControlSelectedItem];

            //Pivot item
            int pivotControlSelectedItem = Tombstoning.Load <int>("pivotControlSelectedItem");
            pivotControl.SelectedIndex = pivotControlSelectedItem;
        }