Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 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;
         }
     }
 }