Beispiel #1
0
        /// <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();
        }
Beispiel #2
0
 public void Update(ActionServiceReference.Order t)
 {
     throw new NotImplementedException();
 }