Пример #1
0
 private void b_mas_Click(object sender, EventArgs e)
 {
     frm_marcas marcas = new frm_marcas();
     marcas.accion = "Insertar";
     marcas.Show();
 }
Пример #2
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1)
     {
         frm_marcas marcas = new frm_marcas();
         marcas.accion = "Editar";
         marcas.codigo = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString().Replace(" ", "");
         marcas.ShowDialog();
     }
 }