Exemple #1
0
        private void Button3_Click(object sender, EventArgs e)
        {
            Booking_Dialog bookingDialog = new Booking_Dialog();
            DialogResult   result        = bookingDialog.ShowDialog();

            textBox1.Text = result == DialogResult.Yes ? "Event" : "Photoshoot";
        }
Exemple #2
0
        private void Booking_Details_Load(object sender, EventArgs e)
        {
            Booking_Dialog bookingDialog = new Booking_Dialog();
            DialogResult   result        = bookingDialog.ShowDialog();

            if (result == DialogResult.Yes)
            {
                textBox1.Text = "Event";
            }
            if (result == DialogResult.No)
            {
                textBox1.Text = "Photoshoot";
            }
            if (result == DialogResult.Cancel)
            {
            }
        }
        private void Button20_Click(object sender, EventArgs e)
        {
            Booking_Dialog booking_Dialog = new Booking_Dialog();

            booking_Dialog.Show();
        }