private void btnCreate_Click(object sender, EventArgs e)
        {
            frmAddUpdateCompany fmAdd = new frmAddUpdateCompany();

            fmAdd.Show();

            this.Hide();
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddUpdateCompany fmAdd = new frmAddUpdateCompany();

            fmAdd.MdiParent = this.MdiParent;
            fmAdd.Show();

            this.Close();
        }
        void EditData()
        {
            if (dgDisplayData.SelectedRows.Count > 0)
            {
                int ID = 0;
                int.TryParse(dgDisplayData.CurrentRow.Cells["TM_COMPAYID"].Value.ToString(), out ID);

                Datalayer.iEditT001_COMPANYID = ID;

                frmAddUpdateCompany frmAddSTD = new frmAddUpdateCompany();
                frmAddSTD.MdiParent = this.MdiParent;
                frmAddSTD.Show();

                this.Close();
            }
            else
            {
                Datalayer.InformationMessageBox(Datalayer.sMeessgeSelection);
            }
        }