Exemple #1
0
        private void SwitchToStations()
        {
            isStopSearch = true;

            StationsVisibility = Visibility.Visible;
            SearchVisibility   = Visibility.Collapsed;

            SelectedStationVisibility     = Visibility.Collapsed;
            SelectedCustomPointVisibility = Visibility.Collapsed;
            SelectedSearchItemVisibility  = Visibility.Collapsed;

            if (isPointA)
            {
                PointA.Hide();
            }
            else
            {
                PointB.Hide();
            }

            MapSearchResults.Clear();

            ClearSearchTextBox();

            ShowStopsList();
        }
Exemple #2
0
        private void PointAClick()
        {
            if (!this.isPointA)
            {
                PointA.Select();

                this.isPointA = true;

                PointB.Deselect();

                if (PointA.HasValue())
                {
                    if (PointA.Station == null && PointA.CustomPoint == null)
                    {
                        SelectedSearchItemForView = PointA.SearchItem;

                        SelectedStationVisibility     = Visibility.Collapsed;
                        SelectedCustomPointVisibility = Visibility.Collapsed;
                        SelectedSearchItemVisibility  = Visibility.Visible;
                    }
                    else if (PointA.SearchItem == null && PointA.CustomPoint == null)
                    {
                        SelectedStationForView = PointA.Station;

                        SelectedSearchItemVisibility  = Visibility.Collapsed;
                        SelectedCustomPointVisibility = Visibility.Collapsed;
                        SelectedStationVisibility     = Visibility.Visible;
                    }
                    else
                    {
                        SelectedCustomPointForView = PointA.CustomPoint;

                        SelectedSearchItemVisibility  = Visibility.Collapsed;
                        SelectedStationVisibility     = Visibility.Collapsed;
                        SelectedCustomPointVisibility = Visibility.Visible;
                    }

                    PointA.Show();
                }
                else
                {
                    PointA.Hide();
                    SelectedStationVisibility     = Visibility.Collapsed;
                    SelectedSearchItemVisibility  = Visibility.Collapsed;
                    SelectedCustomPointVisibility = Visibility.Collapsed;
                }
            }
        }