Exemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddUpdateExpenseTransaction fmAdd = new frmAddUpdateExpenseTransaction();

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

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

                Datalayer.iT013_EXPENSETRANSACATIONID = ID;

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

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