private void Create_Account_Click(object sender, EventArgs e) { if (this.textBox2.Text == this.textBox3.Text) { this.label3.Hide(); } if (ActDB.search_list(this.textBox1.Text) == true) { this.label2.Show(); } else if (this.textBox2.Text != this.textBox3.Text) { this.label2.Hide(); this.label3.Show(); } else { ActDB.create_account(this.textBox1.Text, this.textBox2.Text); Home NewForm = new Home(ActDB, EvtDB, ActDB.get_info(this.textBox1.Text)); NewForm.Show(); NewForm.Left = this.Left; NewForm.Top = this.Top; NewForm.Size = this.Size; this.Hide(); } //end else } //end Create account click
private void button1_Click(object sender, EventArgs e) { string user = this.textBox1.Text; string pass = this.textBox2.Text; if (ActDB.check_info(user, pass) == true) { Home NewForm = new Home(ActDB, EvtDB, ActDB.get_info(user)); NewForm.Show(); NewForm.Left = this.Left; NewForm.Top = this.Top; NewForm.Size = this.Size; this.Hide(); } else { this.label1.Show(); } }