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

            ofrmProduct.RefreshParent += new System.EventHandler(this.RefreshParent);


            if (ofrmProduct.ShowDialog(new Product(), FormDisplayType.Add))
            {
                RefreshList();
            }
        }
Esempio n. 2
0
        private void ViewProduct()
        {
            frmProduct ofrmProduct = new frmProduct();

            ofrmProduct.RefreshParent += new System.EventHandler(this.RefreshParent);

            Product oProduct = GetSelectedRowRecords();

            if (ofrmProduct.ShowDialog(oProduct, FormDisplayType.View))
            {
                RefreshList();
            }
        }
Esempio n. 3
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            frmProduct ofrmProduct = new frmProduct();

            ofrmProduct.RefreshParent += new System.EventHandler(this.RefreshParent);

            Product oProduct = GetSelectedRowRecords();

            if (ofrmProduct.ShowDialog(oProduct, FormDisplayType.Delete))
            {
                RefreshList();
            }
        }