示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddUpdateSale fmAdd = new frmAddUpdateSale();

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

            this.Close();
        }
示例#2
0
        private void btnSale_Click(object sender, EventArgs e)
        {
            CloseAll();

            frmAddUpdateSale fmSale = new frmAddUpdateSale();

            fmSale.MdiParent = this;
            fmSale.Show();
        }
示例#3
0
        void EditData()
        {
            if (dgDisplayData.SelectedRows.Count > 0)
            {
                int ID = 0;
                int.TryParse(dgDisplayData.CurrentRow.Cells["T007_SALEID"].Value.ToString(), out ID);

                Datalayer.iT007_SALEID = ID;

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

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