public static FORMCourses Instance() { if (sForm == null) { sForm = new FORMCourses(); } return(sForm); }
protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); sForm = null; }
private void FORMCourses_Load(object sender, System.EventArgs e) { //Set Images setImages(); //Set the Data Adapter daCourseList = new OleDbDataAdapter("", clsConnections.CN); loadCourse("SELECT CourseName, CourseDescription FROM tblCourse ORDER BY CourseName ASC"); setButtonTips(); publicCourseList = this; }