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(); }
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(); }