private void rowTypeEquipment_DoubleClick(object sender, MouseButtonEventArgs e) { if (gridTypeEquipment.SelectedIndex == -1) { return; } typeEquipmentWnd = new TypeEquipmentWnd(typeEquipments, ((TypeEquipmentView)gridTypeEquipment.SelectedItem).Id); typeEquipmentWnd.ShowDialog(); }
private void btnInsertTypeEquipment_Click(object sender, RoutedEventArgs e) { typeEquipmentWnd = new TypeEquipmentWnd(typeEquipments); typeEquipmentWnd.ShowDialog(); }