public SaleViewPrintPage(IList <SaleProduct> saleProducts, Size pageSize, int pageNr) { saleToday = new KioskVerwaltung.BusinessObjects.Sale(); saleToday.SaleProducts = new System.Collections.ObjectModel.ObservableCollection <SaleProduct>(saleProducts); DataContext = this; this.pageNr = pageNr + 1; InitializeComponent(); this.RenderSize = pageSize; }
public SaleViewLastPrintPage(IList <SaleProduct> saleProducts, IList <SaleProduct> saleProductsTotal, Size pageSize, int pageNr) { saleToday = new Sale(); saleToday.SaleProducts = new System.Collections.ObjectModel.ObservableCollection <SaleProduct>(saleProducts); saleTodayTotal = new Sale(); saleTodayTotal.SaleProducts = new System.Collections.ObjectModel.ObservableCollection <SaleProduct>(saleProductsTotal); DataContext = this; this.pageNr = pageNr + 1; InitializeComponent(); this.RenderSize = pageSize; }