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