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; } } }