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

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