private void button_Confirm_Click(object sender, EventArgs e)
        {
            if (label_Movie.Text != "")
            {
                this.Enabled = false;
                pnlBooking booking = new pnlBooking(this);
                booking.Location = new Point(main.ClientSize.Width / 2 - booking.Size.Width / 2, main.ClientSize.Height / 2 - booking.Size.Height / 2);
                main.Controls.Add(booking);
                booking.BackColor = SystemColors.Control;

                booking.BringToFront();
                booking.Focus();
            }
            else
            {
                MetroFramework.MetroMessageBox.Show(this, "Please select movie", "MessageBox", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Beispiel #2
0
 public pnlMemberReg(pnlBooking pnl2)
 {
     InitializeComponent();
     main = pnl2.main;
     pnlB = pnl2;
 }