private void AccountButton_Click(object sender, EventArgs e) { Account NewForm = new Account(ActDB, EvtDB, user); NewForm.Show(); NewForm.Left = this.Left; NewForm.Top = this.Top; NewForm.Size = this.Size; NewForm.label2.Text = user.get_email(); if (user.check_status() == true) { NewForm.label6.Text = "Holdee"; NewForm.button2.Hide(); NewForm.button1.Show(); } else { NewForm.label6.Text = "Customer"; NewForm.button1.Hide(); NewForm.button2.Show(); } if (EvtDB.check_cust_spot(user.get_email()) == true) { NewForm.button3.Show(); } else { NewForm.label8.Show(); } this.Hide(); }
private void AccountButton_Click(object sender, EventArgs e) { AccountHoldee NewForm = new AccountHoldee(ActDB, EvtDB, user); NewForm.Show(); NewForm.Left = this.Left; NewForm.Top = this.Top; NewForm.Size = this.Size; NewForm.label2.Text = user.get_email(); this.Hide(); if (EvtDB.check_spot(user.get_email()) == false) { NewForm.label8.Show(); } else { NewForm.button3.Show(); } }
private void textBox1_TextChanged(object sender, EventArgs e) { label2.Text = user.get_email(); }