Beispiel #1
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();
            if (EvtDB.check_spot(user.get_email()) == false)
            {
                NewForm.label8.Show();
            }
            else
            {
                NewForm.button3.Show();
            }
            this.Hide();
        }
Beispiel #2
0
        private void Purchase_Button_Click(object sender, EventArgs e)
        {
            Search NewForm = new Search(ActDB, EvtDB, user);

            NewForm.Show();
            NewForm.Left = this.Left;
            NewForm.Top  = this.Top;
            NewForm.Size = this.Size;
            if (EvtDB.check_spot(user.get_email()) == false)
            {
                Spot view = EvtDB.get_holdee_spot(this.label7.Text);
                view.set_taken(user.get_email());
                NewForm.label5.Show();
            }
            else
            {
                NewForm.label7.Show();
            }

            this.Hide();
        }