示例#1
0
        private void PostButton_Click(object sender, EventArgs e)
        {
            PostHoldee NewForm = new PostHoldee(ActDB, EvtDB, user);

            NewForm.Show();
            NewForm.Left = this.Left;
            NewForm.Top  = this.Top;
            NewForm.Size = this.Size;
            this.Hide();
        }
示例#2
0
        private void Post_Spot_Button_Click(object sender, EventArgs e)
        {
            string     Address = this.textBox1.Text;
            PostHoldee NewForm = new PostHoldee(ActDB, EvtDB, user);

            NewForm.Show();
            NewForm.Left = this.Left;
            NewForm.Top  = this.Top;
            NewForm.Size = this.Size;
            if (EvtDB.check_spot(user.get_email()) == true)
            {
                NewForm.label6.Show();
            }
            else
            {
                int    Cost        = Convert.ToInt32(this.numericUpDown1.Value);
                string Description = this.textBox3.Text;
                EvtDB.addtoDB(Address, Description, user.get_email(), Cost);
                NewForm.label5.Show();
            }
            this.Hide();
        }