private void EditarUsuario(int idImagen, Usuario participante, int pj) { FrmRegistro reg = new FrmRegistro() { Editar = 1, User = participante, IdImagen = idImagen }; this.Hide(); if (reg.ShowDialog(this) == DialogResult.OK) { if (pj == 1) { //Refrescar los datos del usuarios en el cuadro de texto pbo.RefrescarUsuario(Participante1); lblNombre.Text = this.Participante1.Nombre; pictureBox1.Image = this.Participante1.Foto != null ? this.Participante1.Foto.Foto : null; lblUsuario.Text = this.Participante1.User; } else { //Refrescar los datos del usuarios en el cuadro de texto pbo.RefrescarUsuario(Participante2); lblNombre.Text = this.Participante2.Nombre; pictureBox1.Image = this.Participante2.Foto != null ? this.Participante1.Foto.Foto : null; lblUsuario.Text = this.Participante2.User; } } }
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FrmRegistro reg = new FrmRegistro() { Editar = 0 }; reg.Show(this); this.Hide(); }