Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            bool  firstrun = SQLHelper.CheckTeacherRegistration();
            login login    = new login(this, !firstrun);

            login.ShowDialog();
            this.Refresh();
        }
Exemple #2
0
        private void Account_Load(object sender, EventArgs e)
        {
            SQLHelper.CheckDatabase();
            List <string> presetsnames = SQLHelper.GetProfilesNames();

            foreach (string presetname in presetsnames)
            {
                comboBox1.Items.Add(presetname);
            }
            bool firstrun = SQLHelper.CheckTeacherRegistration();

            this.Visible = false;
            login login = new login(this, !firstrun);

            login.ShowDialog();
        }