Example #1
0
        public static BookingQueryForm GetInstance(SqlDBConnect conn)
        {
            if (FormInstance == null)
            {
                FormInstance = new BookingQueryForm(conn);
            }

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