private void btnagregar_Click(object sender, EventArgs e) { frmmodulosingle frm = new frmmodulosingle(new ModuloDTO(), "A"); frm.ShowDialog(); LoadForm(); }
private void btnmodificar_Click(object sender, EventArgs e) { Int32 id = Convert.ToInt32(DGVGrilla[0, DGVGrilla.CurrentRow.Index].Value); ModuloDTO getmodulo = Myproxy().Get(id, ""); frmmodulosingle frm = new frmmodulosingle(getmodulo, "M"); frm.ShowDialog(); LoadForm(); }
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); ModuloDTO getmodulo = Myproxy().Get(id, ""); frmmodulosingle frm = new frmmodulosingle(getmodulo, "D"); frm.ShowDialog(); LoadForm(); } }