/// <summary> /// Edits the user's profile picture path /// </summary> /// <param name="sender">The object sender</param> /// <param name="e">The event args</param> private void editPictureButton_Click(object sender, EventArgs e) { UploadProfilePicForm uploadPictureForm = new UploadProfilePicForm(this); uploadPictureForm.ShowDialog(); pictureBox.Image = ProfilePicture; }
/// <summary> /// Opens the UploadProfilePicForm. /// </summary> /// <param name="sender">The object sender</param> /// <param name="e">The event args</param> private void registerUploadPhotoButton_Click(object sender, EventArgs e) { UploadProfilePicForm uploadPictureForm = new UploadProfilePicForm(this); this.Hide(); uploadPictureForm.ShowDialog(); registerPicture.Image = ProfileImage; }