public void PrintDocument(object param) { LstCustomers.RemoveAll(s => s.IsSelected == false); IEnumerable <int> selectedcustomers = (IEnumerable <int>)LstCustomers.Select(v => v.CustomerID); var SelectedDate = param.ToString(); SharedValues.CustomersID = selectedcustomers; SharedValues.Print_Id = SelectedCustomerID.ToString(); var mainview = ServiceLocator.Current.GetInstance <SalesInvoiceCreditPayementReport>(); var mainregion = this.regionManager.Regions[RegionNames.MainRegion]; mainregion.Add(mainview); if (mainregion != null) { mainregion.Activate(mainview); } }
public void PrintDocument(object param) { LstCustomers.RemoveAll(s => s.IsSelected == false); IEnumerable <int> selectedcustomers = (IEnumerable <int>)LstCustomers.Select(v => v.CustomerID); SharedValues.CustomersID = selectedcustomers; var SelectedDate = param.ToString(); SharedValues.Print_Id = SelectedCustomerID.ToString(); SharedValues.PrintDate = SelectedDate; //PrintSalesOrder(); var mainview = ServiceLocator.Current.GetInstance <UnpaidSalesInvoiceReport>(); var mainregion = this.regionManager.Regions[RegionNames.MainRegion]; mainregion.Add(mainview); if (mainregion != null) { mainregion.Activate(mainview); }//// // eventAggregator.GetEvent<TitleChangedEvent>().Publish("Customer Report"); }