private void AbrirPersonas(object sender, EventArgs e) { frmPersona frm = frmPersona.GetInstance(); frm.MdiParent = this; frm.Show(); }
private void personaToolStripMenuItem_Click(object sender, EventArgs e) { frmPersona frmPers = new frmPersona(); frmPers.MdiParent = this; frmPers.Show(); }
public int guardar(frmPersona vista) { p.Nombre = ((HtmlInputText)vista.Page.Form.FindControl("nombre")).Value; p.Apellidos = ((HtmlInputText)vista.Page.Form.FindControl("apellidos")).Value; p.Telefono = ((HtmlInputText)vista.Page.Form.FindControl("telefono")).Value; p.Email = ((HtmlInputText)vista.Page.Form.FindControl("email")).Value; int create = dp.Create(p); return(create); }
public int modificar(frmPersona vista) { p.Id = Convert.ToInt32(((HtmlInputHidden)vista.Page.FindControl("id")).Value); p.Nombre = ((HtmlInputText)vista.Page.Form.FindControl("nombre")).Value; p.Apellidos = ((HtmlInputText)vista.Page.Form.FindControl("apellidos")).Value; p.Telefono = ((HtmlInputText)vista.Page.Form.FindControl("telefono")).Value; p.Email = ((HtmlInputText)vista.Page.Form.FindControl("email")).Value; int update = dp.Update(p); return(update); }
public ControladorCliente(frmPersona fromularioPersona) { this.datos_cliente = new CRUD_Cliente(); this.formularioPersona = formularioPersona; }