private void RacksListGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { Rack rack = (Rack)RackListGrid.SelectedItem; try { EditRack editRack = new EditRack(rack); this.NavigationService.Navigate(editRack); } catch { return; } }
private void RacksListGrid_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { Rack rack = (Rack)RackListGrid.SelectedItem; try { EditRack editRack = new EditRack(rack); this.NavigationService.Navigate(editRack); } catch { return; } } }