Esempio n. 1
0
 private void b_agregar_Click(object sender, EventArgs e)
 {
     frm_roles roles = new frm_roles();
     roles.accion = "Insertar";
     roles.Show();
 }
Esempio n. 2
0
 private void dgv_roles_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1)
     {
         frm_roles roles = new frm_roles();
         roles.accion = "Editar";
         roles.codigo = dgv_roles.Rows[e.RowIndex].Cells[0].Value.ToString().Replace(" ", "");
         roles.ShowDialog();
     }
 }