Esempio n. 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddUpdateProductItem fmAdd = new frmAddUpdateProductItem();

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

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

                Datalayer.iTM03_PRODUCTITEMID = ID;

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

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