public static ImplCourses getInstance() { if (instance == null) { instance = new ImplCourses(); } if (daoCourses == null) { daoCourses = new DAOCourses(); } return instance; }
public static searchSound createForm(TextBox tBox) { //if (instance == null || instance.IsDisposed) //{ instance = new searchSound(); //} if (implCourses == null) { implCourses = ImplCourses.getInstance(); } if (strWheres == null) { strWheres = new Dictionary<string, string>(); } textBox = tBox; return instance; }