Пример #1
0
        private void nuevoRolBtn_Click(object sender, EventArgs e)
        {
            this.Dispose();
            this.Close();
            AltaEditRolForm altaRol = new AltaEditRolForm();

            altaRol.Show();
        }
Пример #2
0
 private void updateRolBtn_Click(object sender, EventArgs e)
 {
     if (dataGridRoles.DataSource != null && dataGridRoles.SelectedRows.Count > 0)
     {
         foreach (DataGridViewRow row in dataGridRoles.SelectedRows)
         {
             Rol             rolSeleccionado = (Rol)row.DataBoundItem;
             AltaEditRolForm editForm        = new AltaEditRolForm(rolSeleccionado);
             editForm.ShowDialog();
         }
         this.Dispose();
         this.Close();
     }
     else
     {
         MessageBox.Show("No se selecciono rol. Seleccione una fila de la tabla");
     }
 }