public PersonaBoton(Persona p) { persona = p; boton = new Button(); boton.Enabled = true; igualarImagen(); actualizar(); boton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; boton.TabIndex = 1; boton.UseVisualStyleBackColor = true; boton.FlatAppearance.BorderSize = 0; }
public void morir() { //persona.gritar(); persona = null; boton.Dispose(); }