Ejemplo n.º 1
0
        private void CheckTicktB_Click(object sender, EventArgs e)
        {
            TicketDetails tktcpage = new TicketDetails();

            tktcpage.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void ConfirmreservationB_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("After confirmation, you can not make any changes.\n Do you want to continue", "Confirmation", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                sqlcon.Open();
                SqlCommand cmd = sqlcon.CreateCommand();
                cmd.CommandType = CommandType.Text;
                cmd.CommandText = "update BSTicket set TicketStatus = '" + ConfirmationL.Text + "' where Ref = '" + Homepage.reff + "'";
                cmd.ExecuteNonQuery();
                sqlcon.Close();

                TicketDetails tktpage = new TicketDetails();
                tktpage.Show();
                this.Hide();
            }
        }