/// <summary> /// Sets datasources and bind data to controls. /// </summary> private void Bind() { var repository = new OrderRepository(); ActionServiceReference.Order order = repository.GetOrder(OrderId); // Set the date LabelHeader.Text = "Order Line Items"; LabelOrderDate.Text = "Order date: " + order.OrderDate.ToShortDateString(); HyperLinkBack.Text = "< back to orders "; GridViewOrderDetails.DataSource = order.OrderDetails; GridViewOrderDetails.DataBind(); }
public void Update(ActionServiceReference.Order t) { throw new NotImplementedException(); }