예제 #1
0
        private void btnagregar_Click(object sender, EventArgs e)
        {
            frmpersonasingle frm = new frmpersonasingle(new PersonaDTO(), "A", "Administrador", "Alta Administrador");

            frm.ShowDialog();
            LoadForm();
        }
예제 #2
0
        private void btnmodificar_Click(object sender, EventArgs e)
        {
            Int32            id         = Convert.ToInt32(DGVGrilla[0, DGVGrilla.CurrentRow.Index].Value);
            PersonaDTO       getpersona = Myproxy().Get(id, "");
            frmpersonasingle frm        = new frmpersonasingle(getpersona, "M", "Administrador", "Modificar Administrador");

            frm.ShowDialog();
            LoadForm();
        }
예제 #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);
         PersonaDTO       getpersona = Myproxy().Get(id, "");
         frmpersonasingle frm        = new frmpersonasingle(getpersona, "D", "Administrador", "Eliminar Adminstrador");
         frm.ShowDialog();
         LoadForm();
     }
 }