public static BookingQueryForm GetInstance(SqlDBConnect conn) { if (FormInstance == null) { FormInstance = new BookingQueryForm(conn); } return(FormInstance); }
private void BookingQueryExercise2_Click(object sender, EventArgs e) { BookingQueryForm.GetInstance(connection).Show(); }