Example #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();
            }
        }
Example #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();
            }
        }
Example #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();
            }
        }