private void frmOccupationDepartment_Load(object sender, EventArgs e) { try { clsISUtilities = new clsISUtilities(this, "busOccupationDepartment"); this.lblDescription.Paint += new System.Windows.Forms.PaintEventHandler(clsISUtilities.Label_Paint); pvtstrMenuId = AppDomain.CurrentDomain.GetData("MenuId").ToString(); if (pvtstrMenuId == "3A") { this.Name = "frmOccupation"; this.lblDescription.Text = "Occupation"; pvtstrTableName = "OCCUPATION"; clsISUtilities.NotDataBound_TextBox(this.txtOccupationDepartment, "Enter Occupation."); } else { pvtstrTableName = "DEPARTMENT"; clsISUtilities.NotDataBound_TextBox(this.txtOccupationDepartment, "Enter Department."); } object[] objParm = new object[2]; objParm[0] = Convert.ToInt64(AppDomain.CurrentDomain.GetData("CompanyNo")); objParm[1] = pvtstrMenuId; pvtbytCompress = (byte[])clsISUtilities.DynamicFunction("Get_Form_Records", objParm); pvtDataSet = clsISUtilities.DeCompress_Array_To_DataSet(pvtbytCompress); Load_CurrentForm_Records(); } catch (Exception eException) { clsISUtilities.ErrorHandler(eException); } }