Ejemplo n.º 1
0
 private void Button_Edit_Click(object sender, RoutedEventArgs e)
 {
     if (EquipmentsDataGrid.SelectedItems.Count > 0)
     {
         Equipment       equipment       = (Equipment)EquipmentsDataGrid.SelectedItems[0];
         EquipmentWindow equipmentWindow = new EquipmentWindow(equipment);
         equipmentWindow.Show();
     }
 }
Ejemplo n.º 2
0
        private void Button_Add_Click(object sender, RoutedEventArgs e)
        {
            EquipmentWindow equipmentWindow = new EquipmentWindow();

            equipmentWindow.Show();
        }