/// <summary> /// —оздает элемент управлени¤ дл ¤отображени¤ отчета по <see cref="ModificationItem"/> ¬— /// </summary> /// <param name="builder"></param> public DispatcheredModificationItemsReport(ModificationItemsReportBuilder builder) { InitializeComponent(); this.builder = builder; crystalReportViewer1.ReportSource = builder.GenerateReport(); Dock = DockStyle.Fill; }
private void ButtonPrint_DisplayerRequested(object sender, ReferenceEventArgs e) { e.DisplayerText = currentAircraft.RegistrationNumber + ". List of Modifications Performed Report"; e.TypeOfReflection = ReflectionTypes.DisplayInNew; ModificationItemsReportBuilder reportBuilder = new ModificationItemsReportBuilder(currentAircraft); e.RequestedEntity = new DispatcheredModificationItemsReport(reportBuilder); }