Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="order">The car to be shown.</param>
 /// <param name="repository">The car repository.</param>
 public OrderViewModel(Order order, Repository repository)
     : base("New order")
 {
     this.order                          = order;
     this.repository                     = repository;
     this.filteredLineViewModel          = new MultiOrderLineViewModel(this.repository, this.order);
     this.filteredLineViewModel.AllLines = this.FilteredLines;
 }
Ejemplo n.º 2
0
        public OrderViewModel(Order order, Repository repository)
            : base("Order")
        {
            this.order       = order;
            this.repositorys = repository;
            this.order.Lines = new List <OrderLine>();

            this.filteredLineViewModel = new MultiOrderLineViewModel(this.repositorys, this.order);
            this.filteredLineViewModel.AllOrderLines = this.FilteredLines;


            // this.order.CustomerId = 1;
        }