private void button7_Click(object sender, EventArgs e) { try { OpenFileDialog dlg = new OpenFileDialog(); dlg.Filter = "JPG Flies (*.jpg)|*.jpg|GIF Files (*.gif)|*gif |ALL Files (*.*)|*.*"; dlg.Title = "Select Picture"; if (dlg.ShowDialog() == DialogResult.OK) { imgloc = dlg.FileName.ToString(); pictureBox1.ImageLocation = imgloc; } } catch (Exception es) { MessageBox.Show(es.Message); } UserOperations.ProfileEditemail(textBox6.Text, imgloc); MessageBox.Show("Picture edited succesfully"); }
private void button2_Click(object sender, EventArgs e) { UserOperations.ProfileEditemail(textBox6.Text, textBox2.Text); MessageBox.Show("Email edited succesfully"); }