Beispiel #1
0
 private void Combobox_Button_Click(object sender, EventArgs e)
 {
     if (this.comboBox1.Text != null)
     {
         this.label5.Show();
         this.label6.Show();
         this.label7.Show();
         this.label8.Show();
         this.label9.Show();
         this.button2.Show();
         this.textBox3.Show();
         Spot view = EvtDB.get_holdee_spot(this.comboBox1.Text);
         this.label5.Text   = view.get_cost().ToString();
         this.textBox3.Text = view.get_spotdesc();
         this.label7.Text   = this.comboBox1.Text;
     }
 }
Beispiel #2
0
        private void Spot_Button_Click(object sender, EventArgs e)
        {
            Spot       current = EvtDB.get_holdee_spot(user.get_email());
            SpotHoldee NewForm = new SpotHoldee(ActDB, EvtDB, user, current);

            NewForm.Show();
            NewForm.Left          = this.Left;
            NewForm.Top           = this.Top;
            NewForm.Size          = this.Size;
            NewForm.label6.Text   = current.get_customerid();
            NewForm.label7.Text   = current.get_cost().ToString();
            NewForm.textBox3.Text = current.get_spotdesc();
            this.Hide();
        }