Example #1
0
        private void BotonNuevo_Click(object sender, EventArgs e)
        {
            CursosDesktop cursosDesktop = new CursosDesktop(ApplicationForm.ModoForm.Alta);

            cursosDesktop.ShowDialog();
            this.Listar();
        }
Example #2
0
        private void tsbNuevo_Click(object sender, EventArgs e)
        {
            CursosDesktop form = new CursosDesktop(ApplicationForm.ModoForm.Alta);

            form.ShowDialog();
            this.Listar();
        }
Example #3
0
        private void tsbNuevo_Click(object sender, EventArgs e)
        {
            CursosDesktop FormCurso = new CursosDesktop(Abm.ModoForm.Alta);

            FormCurso.ShowDialog();
            this.Listar();
        }
Example #4
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            CursosDesktop cd = new CursosDesktop(ApplicationForm.ModoForm.Alta);

            cd.ShowDialog();
            Listar();
        }
Example #5
0
        private void tsbEditar_Click(object sender, EventArgs e)
        {
            int           ID   = Convert.ToInt32(((DataRowView)this.dgvCursos.SelectedRows[0].DataBoundItem)["id_curso"].ToString());
            CursosDesktop form = new CursosDesktop(ID, ApplicationForm.ModoForm.Modificacion);

            form.ShowDialog();
            this.Listar();
        }
Example #6
0
        private void tsbEliminar_Click(object sender, EventArgs e)
        {
            int           ID        = ((Business.Entities.Curso) this.dgvCursos.SelectedRows[0].DataBoundItem).ID;
            CursosDesktop FormCurso = new CursosDesktop(ID, Abm.ModoForm.Baja);

            FormCurso.ShowDialog();
            this.Listar();
        }
Example #7
0
        private void tsbEditar_Click(object sender, EventArgs e)
        {
            int           ID            = ((Business.Entities.Curso) this.dgvCursos.SelectedRows[0].DataBoundItem).ID;
            CursosDesktop cursosDesktop = new CursosDesktop(ApplicationForm.ModoForm.Modificacion, ID);

            cursosDesktop.ShowDialog();
            this.Listar();
        }
Example #8
0
 private void btnEditar_Click(object sender, EventArgs e)
 {
     if (dgvCursos.SelectedRows != null && dgvCursos.MultiSelect == false && dgvCursos.SelectionMode == DataGridViewSelectionMode.FullRowSelect)
     {
         int           ID = ((Curso)dgvCursos.SelectedRows[0].DataBoundItem).ID;
         CursosDesktop pd = new CursosDesktop(ID, ApplicationForm.ModoForm.Modificacion);
         pd.ShowDialog();
         Listar();
     }
 }
Example #9
0
        private void tsbEliminar_Click(object sender, EventArgs e)
        {
            var rta = MessageBox.Show("¿Desea Eliminar el Curso?", "Advertencia", MessageBoxButtons.YesNo);

            if (rta == DialogResult.Yes)
            {
                int           ID   = Convert.ToInt32(((DataRowView)this.dgvCursos.SelectedRows[0].DataBoundItem)["id_curso"].ToString());
                CursosDesktop form = new CursosDesktop(ID, ApplicationForm.ModoForm.Baja);
                form.ShowDialog();
                this.Listar();
            }
        }
Example #10
0
 private void BotonBorrar_Click(object sender, EventArgs e)
 {
     if (this.DataGridViewCursos.SelectedRows is null)
     {
     }
     else
     {
         int           id            = ((Curso)this.DataGridViewCursos.SelectedRows[0].DataBoundItem).ID;
         CursosDesktop cursosDesktop = new CursosDesktop(id, ApplicationForm.ModoForm.Baja);
         cursosDesktop.ShowDialog();
     }
     Listar();
 }