Пример #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddUpdateProduct fmAdd = new frmAddUpdateProduct();

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

            this.Close();
        }
Пример #2
0
        void EditData()
        {
            if (dgDisplayData.SelectedRows.Count > 0)
            {
                int ID = 0;
                int.TryParse(dgDisplayData.CurrentRow.Cells["TM01_PRODUCTID"].Value.ToString(), out ID);

                Datalayer.iTM01_PRODUCTID = ID;

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

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