private void showFindNearbyToolWindow() { string title = Resources.Strings.FindNearbyTitle; findNearbyToolWindow = new FindNearbyDialog(); findNearbyToolWindow.FindNearbyExecuted += new EventHandler <FindNearbyEventArgs>(findNearbyToolWindow_FindNearby); findNearbyToolWindow.LayersInMap = Map.Layers; findNearbyToolWindow.SelectedLayer = Layer; MapApplication.Current.ShowWindow(title, findNearbyToolWindow); }
private void showFindNearbyToolWindow() { string title = Resources.Strings.FindNearbyTitle; findNearbyToolWindow = new FindNearbyDialog(); findNearbyToolWindow.FindNearbyExecuted += new EventHandler<FindNearbyEventArgs>(findNearbyToolWindow_FindNearby); findNearbyToolWindow.LayersInMap = Map.Layers; findNearbyToolWindow.SelectedLayer = Layer; MapApplication.Current.ShowWindow(title, findNearbyToolWindow); }
/// <summary> /// LayersInMapProperty property changed handler. /// </summary> /// <param name="d">FindNearbyDialog that changed its LayersInMap.</param> /// <param name="e">Event arguments.</param> private static void OnLayersInMapPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { FindNearbyDialog source = d as FindNearbyDialog; source.OnLayersInMapChanged(); }