Beispiel #1
0
        public static FORMCategory  Instance()
        {
            if (sForm == null)
            {
                sForm = new FORMCategory();
            }

            return(sForm);
        }
Beispiel #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (components != null)
         {
             components.Dispose();
         }
     }
     base.Dispose(disposing);
     sForm = null;
 }
Beispiel #3
0
        private void FORMCategory_Load(object sender, System.EventArgs e)
        {
            //Set Images
            setImages();

            //Set the Data Adapter
            daCategoryList = new OleDbDataAdapter("", clsConnections.CN);

            loadCategory("SELECT CategoryName, CATDescription  FROM tblCategory ORDER BY CategoryName ASC");
            setButtonTips();
            publicCatList = this;
        }