Exemplo n.º 1
0
        private void button_change_Click(object sender, EventArgs e)
        {
            if (textBox_pass.Text.Equals(textBox_conpass.Text))
            {
                Edit ed = new Edit();
                ed.changePassword(Username, textBox_pass.Text);
                MessageBox.Show("Your Password has been updated!!!");
                this.Hide();
                Profile pf = new Profile(Username);
                pf.Show();
            }

            else
            {
                MessageBox.Show("Password Didnt Match !!!");
            }
        }
Exemplo n.º 2
0
 private void ToolStripMenuItem_viewprofile_Click(object sender, EventArgs e)
 {
     Profile pf = new Profile(username);
     this.Hide();
     pf.Show();
 }