public static IReportInfo GetReportInfoFromXtraReport(XtraReport report)
 {
     return(GetReportInfo(DefaultPrintModeViewModel.Create(), p => report));
 }
 public static IReportInfo GetReportInfoFromRepository(string name, object dataSource, INextBOUnitOfWork unitOfWork)
 {
     return(GetReportInfo(DefaultPrintModeViewModel.Create(), p => GetReportbyName(name, dataSource, unitOfWork)));
 }