private IJournalAction CreateOpenTrackAction() { return(new JournalAction( "Открыть трек", selectedItems => true, selectedItems => true, selectedItems => { if (selectedItems.FirstOrDefault() is RouteListJournalNode selectedNode) { var track = new TrackOnMapWnd(selectedNode.Id); track.Show(); } } )); }
protected void OnButtonOpenMapClicked(object sender, EventArgs e) { var trackWnd = new TrackOnMapWnd(UoWGeneric); trackWnd.Show(); }