Example #1
0
        private void btnAccount_Click(object sender, EventArgs e)
        {
            CloseAll();

            frmAddUpdateAccount fmAccount = new frmAddUpdateAccount();

            fmAccount.MdiParent = this;
            fmAccount.Show();
        }
Example #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddUpdateAccount fmAdd = new frmAddUpdateAccount();

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

            this.Close();
        }
Example #3
0
        private void accountDetailsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CloseAll();

            frmAddUpdateAccount fmItm = new frmAddUpdateAccount();

            fmItm.MdiParent = this;
            fmItm.Show();
        }
Example #4
0
        void EditData()
        {
            if (dgDisplayData.SelectedRows.Count > 0)
            {
                int ID = 0;
                int.TryParse(dgDisplayData.CurrentRow.Cells["T001_ACCOUNTID"].Value.ToString(), out ID);

                Datalayer.iT001_ACCOUNTID = ID;

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

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