/// <summary>
        /// Set subpage.
        /// </summary>
        /// <param name="subPage">Subpage to set. Null if disable subpages.</param>
        private void _SetSubPage(IGeocodeSubPage subPage)
        {
            // Do not need to set subpages if page was not called from fleet wizard.
            if (!_isParentFleetWizard)
            {
                return;
            }

            GeocodeHelperPanel.Children.Clear();

            if (subPage != null)
            {
                GeocodeHelperPanel.Children.Add(subPage as Grid);
                Grid.SetColumnSpan(controlsGrid, 1);

                // Set subpage text.
                GeocodeResultText.Text       = subPage.GetGeocodeResultString(CurrentItem, _geocodablePage.CandidatesToZoom);
                GeocodeResultText.Visibility = Visibility.Visible;
            }
            else
            {
                Grid.SetColumnSpan(controlsGrid, 2);

                // Remove subpage text.
                GeocodeResultText.Text       = string.Empty;
                GeocodeResultText.Visibility = Visibility.Collapsed;
            }
        }
Beispiel #2
0
        /// <summary>
        /// Set subpage.
        /// </summary>
        /// <param name="subPage">Subpage to set. Null if disable subpages.</param>
        private void _SetSubPage(IGeocodeSubPage subPage)
        {
            GeocodeHelperPanel.Children.Clear();

            if (subPage != null)
            {
                GeocodeHelperPanel.Children.Add(subPage as Grid);
                Grid.SetColumnSpan(controlsGrid, 1);

                // Set subpage text.
                GeocodeResultText.Text       = subPage.GetGeocodeResultString(CurrentItem, _geocodablePage.CandidatesToZoom);
                GeocodeResultText.Visibility = Visibility.Visible;
            }
            else
            {
                Grid.SetColumnSpan(controlsGrid, 2);

                // Remove subpage text.
                GeocodeResultText.Text       = string.Empty;
                GeocodeResultText.Visibility = Visibility.Collapsed;
            }
        }
        /// <summary>
        /// Set subpage.
        /// </summary>
        /// <param name="subPage">Subpage to set. Null if disable subpages.</param>
        private void _SetSubPage(IGeocodeSubPage subPage)
        {
            GeocodeHelperPanel.Children.Clear();

            if (subPage != null)
            {
                GeocodeHelperPanel.Children.Add(subPage as Grid);
                Grid.SetColumnSpan(controlsGrid, 1);

                // Set subpage text.
                GeocodeResultText.Text = subPage.GetGeocodeResultString(CurrentItem, _geocodablePage.CandidatesToZoom);
                GeocodeResultText.Visibility = Visibility.Visible;
            }
            else
            {
                Grid.SetColumnSpan(controlsGrid, 2);

                // Remove subpage text.
                GeocodeResultText.Text = string.Empty;
                GeocodeResultText.Visibility = Visibility.Collapsed;
            }
        }
        /// <summary>
        /// Set subpage.
        /// </summary>
        /// <param name="subPage">Subpage to set. Null if disable subpages.</param>
        private void _SetSubPage(IGeocodeSubPage subPage)
        {
            // Do not need to set subpages if page was not called from fleet wizard.
            if (!_isParentFleetWizard)
                return;

            GeocodeHelperPanel.Children.Clear();

            if (subPage != null)
            {
                GeocodeHelperPanel.Children.Add(subPage as Grid);
                Grid.SetColumnSpan(controlsGrid, 1);

                // Set subpage text.
                GeocodeResultText.Text = subPage.GetGeocodeResultString(CurrentItem, _geocodablePage.CandidatesToZoom);
                GeocodeResultText.Visibility = Visibility.Visible;
            }
            else
            {
                Grid.SetColumnSpan(controlsGrid, 2);

                // Remove subpage text.
                GeocodeResultText.Text = string.Empty;
                GeocodeResultText.Visibility = Visibility.Collapsed;
            }
        }