private void timer1_Tick(object sender, EventArgs e)
        {
            lblTimer.Text = "00 : " + count.ToString();

            if (count == 0)
            {
                timer1.Stop();

                lblPin.Text   = "";
                lblTimer.Text = "";

                this.Close();
                this.Hide();
                ChangeEmail change = new ChangeEmail(this.username);
                change.ShowDialog();
            }
            count -= 1;
        }
Exemple #2
0
        private void editEmail_Click(object sender, EventArgs e)
        {
            ChangeEmail change = new ChangeEmail(this.username);

            change.ShowDialog();

            if (change.get_email() != null)
            {
                txtEmail.Text = change.get_email();

                if (First_Page.opt1 == 0)
                {
                    d._EmailAddress = txtEmail.Text;
                }
                else
                {
                    p._EmailAddress = txtEmail.Text;
                }
            }
        }