Example #1
0
        private void btnagregar_Click(object sender, EventArgs e)
        {
            frmmateriasingle frm = new frmmateriasingle(new MateriaDTO(), "A");

            frm.ShowDialog();
            LoadForm();
        }
Example #2
0
        private void btnmodificar_Click(object sender, EventArgs e)
        {
            Int32            id         = Convert.ToInt32(DGVGrilla[0, DGVGrilla.CurrentRow.Index].Value);
            MateriaDTO       getmateria = Myproxy().Get(id, "");
            frmmateriasingle frm        = new frmmateriasingle(getmateria, "M");

            frm.ShowDialog();
            LoadForm();
        }
Example #3
0
 private void btneliminar_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Estas seguro de eliminar este registro ?", "Eliminar registro", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         Int32            id         = Convert.ToInt32(DGVGrilla[0, DGVGrilla.CurrentRow.Index].Value);
         MateriaDTO       getmateria = Myproxy().Get(id, "");
         frmmateriasingle frm        = new frmmateriasingle(getmateria, "D");
         frm.ShowDialog();
         LoadForm();
     }
 }