Пример #1
0
        private void Search_Address_Button_Click(object sender, EventArgs e)
        {
            SearchHoldee NewForm = new SearchHoldee(ActDB, EvtDB, user);

            NewForm.Show();
            NewForm.Left = this.Left;
            NewForm.Top  = this.Top;
            NewForm.Size = this.Size;
            if (EvtDB.checkaddress(this.textBox1.Text) == false)
            {
                NewForm.label8.Show();
            }
            else
            {
                Event eve = EvtDB.Edatabase.findaddress(this.textBox1.Text);
                NewForm.label3.Text = this.textBox1.Text;
                NewForm.label6.Text = eve.get_non_hidden_spots().ToString();
                NewForm.button1.Show();
                NewForm.label2.Show();
                NewForm.label5.Show();
                NewForm.label7.Show();
                NewForm.label6.Show();
                NewForm.label4.Show();
                NewForm.label3.Show();
            }
            this.Hide();
        }
Пример #2
0
        private void SearchButton_Click(object sender, EventArgs e)
        {
            SearchHoldee NewForm = new SearchHoldee(ActDB, EvtDB, user);

            NewForm.Show();
            NewForm.Left = this.Left;
            NewForm.Top  = this.Top;
            NewForm.Size = this.Size;
            this.Hide();
        }