public static FORMCategory Instance() { if (sForm == null) { sForm = new FORMCategory(); } return(sForm); }
protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); sForm = null; }
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; }