Пример #1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            EdicionRol frm = new EdicionRol();

            frm.ShowDialog();
            CargarRoles();
        }
Пример #2
0
 private void btnModificar_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(this, "Esta Seguro que quiere modificar este rol", "Advertencia", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation) == DialogResult.OK)
     {
         EdicionRol frm = new EdicionRol();
         frm.txtID.Text  = dgvRoles.CurrentRow.Cells["ID"].Value.ToString();
         frm.txtRol.Text = dgvRoles.CurrentRow.Cells["Rol"].Value.ToString();
         frm.ShowDialog();
         CargarRoles();
     }
 }