Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
 private void textBox1_TextChanged(object sender, EventArgs e)
 {
     label2.Text = user.get_email();
 }