Ejemplo n.º 1
0
        private void lnklblSignUp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            bool stop = false;
            frmRegister register = new frmRegister();
            register.setDB(ref userDB);
            register.ShowDialog();
            register.updateDBList(ref userDB);

            register.mustWrite(ref stop);
            if(stop == false)
            {
                //WriteToFile
                WriteToFile(ref userDB);
            }
        }
Ejemplo n.º 2
0
        private void lnklblSignUp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            bool stop = false;
            frmRegister register = new frmRegister();
            register.setDB(ref userDB);
            register.ShowDialog();
            register.updateDBList(ref userDB);

            register.mustWrite(ref stop);
            if(stop == false)
            {
                //WriteToFile
                WriteToFile(ref userDB);
                btnLogin.Enabled = true;
                txtBxUser.Text = "";
                txtBxPass.Enabled = true;
                txtBxUser.Enabled = true;
            }
        }