private void OnMatchesMouseDoubleClicked(object sender, MouseButtonEventArgs e) { if (sender is ListBox listBox) { foreach (Recording selectedItem in listBox.SelectedItems) { DockPanestreetSmart streetSmart = DockPanestreetSmart.Show(); if (streetSmart != null) { streetSmart.LookAt = null; streetSmart.Replace = true; streetSmart.Nearest = false; streetSmart.Location = selectedItem.ImageId; } } } }
protected override void OnToolMouseUp(MapViewMouseButtonEventArgs e) { if (!string.IsNullOrEmpty(_location)) { bool replace = (!(Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift))); DockPaneStreetSmart streetSmart = DockPaneStreetSmart.Show(); if (streetSmart != null) { streetSmart.LookAt = null; streetSmart.Replace = replace; streetSmart.Nearest = _nearest; streetSmart.Location = _location; } _location = string.Empty; _nearest = false; } }
private void RestartstreetSmart() { // Todo: Check API ready state _measurementList.Api = null; DockPanestreetSmart streetSmart = (dynamic)DataContext; _settings.PropertyChanged -= OnSettingsPropertyChanged; _cycloMediaGroupLayer.PropertyChanged -= OnGroupLayerPropertyChanged; _measurementList.RemoveAll(); _viewerList.RemoveViewers(); // Todo: check api ready state // Todo: get viewer Ids from api int[] viewerIds = new int[0]; foreach (int viewerId in viewerIds) { // Todo: close image from api } Initialize(); }