private void btnRestVehiculos_Click(object sender, RoutedEventArgs e) { RestauracionVehiculo Window = new RestauracionVehiculo(); this.Hide(); Window.ShowDialog(); Close(); }
private void btnRestVehiculos_Click(object sender, RoutedEventArgs e) { try { RestauracionVehiculo Window = new RestauracionVehiculo(); this.Hide(); Window.ShowDialog(); Close(); } catch (Exception ex) { MessageBox.Show("Algo anda mal : " + ex.Message, "Error CRVA-UG", MessageBoxButton.OK, MessageBoxImage.Error); } }