private void btnadd_Click(object sender, EventArgs e) { FrmAddVehiculos frm = new FrmAddVehiculos(); this.Hide(); frm.ShowDialog(); }
private void btnedit_Click(object sender, EventArgs e) { int rowindex = datGridVehiculos.CurrentCell.RowIndex; int columnindex = datGridVehiculos.CurrentCell.ColumnIndex; FrmAddVehiculos fed = new FrmAddVehiculos(); this.Hide(); fed.values = Int32.Parse(datGridVehiculos.Rows[rowindex].Cells[columnindex].Value.ToString()); fed.ShowDialog(); }