Beispiel #1
0
        private void BotonNuevo_Click(object sender, EventArgs e)
        {
            ModulosUsuariosDesktop mud = new ModulosUsuariosDesktop(ApplicationForm.ModoForm.Alta);

            mud.ShowDialog();
            this.Listar();
        }
Beispiel #2
0
        private void BotonBorrar_Click(object sender, EventArgs e)
        {
            if (this.DataGridViewMU.SelectedRows is null)
            {
            }
            else
            {
                int id = ((ModuloUsuario)this.DataGridViewMU.SelectedRows[0].DataBoundItem).ID;
                ModulosUsuariosDesktop mud = new ModulosUsuariosDesktop(id, ApplicationForm.ModoForm.Baja);
                mud.ShowDialog();
            }

            this.Listar();
        }