private void metroButton6_Click(object sender, EventArgs e)
        {
            ManagerData md = new ManagerData();

            if (md.ChangePass(this.manId, metroTextBox2.Text, metroTextBox5.Text) == true)
            {
                MessageBox.Show("Password Changed", "Success");
                Init2();
            }
            else
            {
                MessageBox.Show("Sorry there is a problem.Please check again", "Error");
            }
        }
Exemplo n.º 2
0
        private void Update_Click(object sender, EventArgs e)
        {
            ManagerData md = new ManagerData();

            if (md.ChangePass(this.manId, M_name.Text, M_mail.Text) == true)
            {
                MessageBox.Show("Profile Updated", "Success");
                Init(M_mail.Text);
            }
            else
            {
                MessageBox.Show("Sorry there is a problem.Please check again", "Error");
            }
        }