private void buttonAlta_Click(object sender, EventArgs e)
 {
     this.Hide();
     Regimen.Modificacion alta = new Regimen.Modificacion("Agregar", "INSERT INTO GESTION_DE_GATOS.Regimen (descripcion, precio, estado) VALUES ");
     alta.ShowDialog();
     this.Show();
 }
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 0)
     {
         Int64 codigo = Convert.ToInt64(dataGridView1.CurrentRow.Cells[1].Value);
         string descripcion = dataGridView1.CurrentRow.Cells[2].Value.ToString();
         Decimal precio = Convert.ToDecimal(dataGridView1.CurrentRow.Cells[3].Value);
         bool estado = dataGridView1.CurrentRow.Cells[4].Value.Equals(true);
         ABM_de_Regimen.Regimen regimen = new ABM_de_Regimen.Regimen(codigo, descripcion, precio, estado);
         Regimen.Modificacion modificar = new Regimen.Modificacion(regimen,accionString,query);
         this.Hide();
         modificar.ShowDialog();
         this.Listado_Load(null,null);
         this.Show();
     }
 }