コード例 #1
0
        private void btn_editar_Click(object sender, RoutedEventArgs e)
        {
            int indiceSeleccion = dg_conductores.SelectedIndex;

            if (indiceSeleccion >= 0)
            {
                Conductor          conductorEdicion = conductores[indiceSeleccion];
                registrarConductor editarConductor  = new registrarConductor(conductorEdicion, this);
                editarConductor.ShowDialog();
            }
            else
            {
                MessageBox.Show("Para editar un conductor, primero debe seleccionarlo", "ATENCIÓN");
            }
        }
コード例 #2
0
        private void btn_registrar_Click(object sender, RoutedEventArgs e)
        {
            registrarConductor ventanaRegistrar = new registrarConductor(this);

            ventanaRegistrar.Show();
        }