예제 #1
0
        private void SetData()
        {
            List <ProductType> allProductType = ViewProductTypeController.GetAllProductTypeController();

            GridProductType.DataSource = allProductType;
            GridProductType.DataBind();
        }
        private void SetProductData()
        {
            if (!Page.IsPostBack)
            {
                TxtProductPrice.Text = "0";
                TxtProductStock.Text = "0";
                TxtProductType.Text  = "0";
            }


            List <ProductType> allType = InsertProductController.GetAllProductTypeController();

            GridProductType.DataSource = allType;
            GridProductType.DataBind();
        }