public ProductOrdered(MadeToOrder o, string todo) { InitializeComponent(); order = o; op = new OrderedProduct(); type = todo; if (type == "edit") { op.TransactionId = o.TransactionId; op.GetProductInfo(); } }
public ProductOrdered(MadeToOrder o, string todo) { InitializeComponent(); order = o; //op = new OrderedProduct(); type = todo; if (type == "edit") { //op.TransactionId = o.TransactionId; sowebsvc = new SOWebSvcClient(); //op.GetProductInfo(); op = sowebsvc.GetOrderedProductInfo(o.TransactionId); sowebsvc.Close(); } else { op = new OrderedProduct(); } }