Esempio n. 1
0
        public static FORMCourses  Instance()
        {
            if (sForm == null)
            {
                sForm = new FORMCourses();
            }

            return(sForm);
        }
Esempio n. 2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (components != null)
         {
             components.Dispose();
         }
     }
     base.Dispose(disposing);
     sForm = null;
 }
Esempio n. 3
0
        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;
        }