public static BookingRegistrationForm GetInstance(SqlDBConnect conn)
        {
            if (FormInstance == null)
            {
                FormInstance = new BookingRegistrationForm(conn);
            }

            return(FormInstance);
        }
Example #2
0
 private void BookingRegistrationExercise4_Click(object sender, EventArgs e)
 {
     BookingRegistrationForm.GetInstance(connection).Show();
 }