Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Price price = new Price();

            price.CategoryName = m2CategoryName.Text;
            price.ClassName    = m2ClassName.Text;
            price.ColorName    = m2ColorName.Text;
            price.GroupName    = m2Groupname.Text;
            price.Season       = m2Seasons.Text;
            price.SubClassName = m2SubClassName.Text;
            price.TypeName     = m2TypeName.Text;
            CallAPI callapi = new CallAPI();
            double  pre     = callapi.Price(price);

            PPrice.Text = pre.ToString();
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            // shelf life
            ShelfLife shelflife = new ShelfLife();
            CallAPI   callapi   = new CallAPI();

            shelflife.ShopCode     = int.Parse(m1ShopeCode.Text);
            shelflife.SalePrice    = int.Parse(m1SalePrice.Text);
            shelflife.Season       = m1Season.Text;
            shelflife.GroupName    = m1GroupName.Text;
            shelflife.CategoryName = m1CategoryName.Text;
            shelflife.ClassName    = m1ClassName.Text;
            double sf = callapi.ShelfLife(shelflife);

            Pshelflife.Text = sf.ToString();
        }