|
@@ -35,6 +35,8 @@ namespace InABox.Reports
|
|
|
Image
|
|
|
}
|
|
|
|
|
|
+ public delegate void ReportExportDefinitionClicked();
|
|
|
+
|
|
|
public class ReportExportDefinition
|
|
|
{
|
|
|
public ReportExportDefinition(string caption, Bitmap image, ReportExportType type, Action<DataModel, byte[]> action)
|
|
@@ -45,10 +47,22 @@ namespace InABox.Reports
|
|
|
Action = action;
|
|
|
}
|
|
|
|
|
|
+ public ReportExportDefinition(string caption, ContentControl control, ReportExportType type, Action<DataModel, byte[]> action)
|
|
|
+ {
|
|
|
+ Caption = caption;
|
|
|
+ Type = type;
|
|
|
+ Action = action;
|
|
|
+ Control = control;
|
|
|
+ }
|
|
|
+
|
|
|
+ public event ReportExportDefinitionClicked OnReportDefinitionClicked;
|
|
|
+
|
|
|
public string Caption { get; }
|
|
|
|
|
|
public Bitmap Image { get; }
|
|
|
|
|
|
+ public ContentControl Control { get; }
|
|
|
+
|
|
|
public ReportExportType Type { get; }
|
|
|
|
|
|
public Action<DataModel, byte[]> Action { get; }
|
|
@@ -344,7 +358,7 @@ namespace InABox.Reports
|
|
|
where TType : Entity, IRemotable, IPersistent, new()
|
|
|
{
|
|
|
PrintMenu(element, sectionName, model, allowdesign, populate);
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
#region Old RDL Stuff (Deprecated)
|
|
|
|