Beispiel #1
0
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 13)
     {
         Agregar_Modificar_Chofer amc = new Agregar_Modificar_Chofer(dataGridView1.Rows[e.RowIndex], this);
         amc.Show();
     }
     else
     {
         if (e.ColumnIndex == 14)
         {
             choferTableAdapter1.DeleteChofer(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());
             MessageBox.Show("El Chofer se ha Inhabilitado Correctamente", "Baja Chofer", MessageBoxButtons.OK, MessageBoxIcon.None);
             this.ABMChofer_Load(sender, e);
         }
     }
 }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Agregar_Modificar_Chofer amc = new Agregar_Modificar_Chofer(this);

            amc.Show();
        }