Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string nome  = textBox1.Text;
            string email = textBox2.Text;
            string pass  = textBox3.Text;

            bool res = mnham.registaUtilizador(nome, email, pass);

            if (res == false)
            {
                MessageBox.Show("Email de utilizador existente", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                this.Hide();
                Form1 f = new Form1(mnham);
                f.ShowDialog();
            }
        }