|
@@ -350,8 +350,24 @@ namespace InABox.Wpf.Reports
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Populate the <paramref name="menu"/> with a list of reports attached to this data model, loaded through <see cref="LoadReports(string, DataModel, Columns{ReportTemplate}?)"/>.
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <remarks>
|
|
|
|
+ /// This is used for the various places we have context menus for printing reports.
|
|
|
|
+ /// </remarks>
|
|
|
|
+ /// <param name="allowdesign">Allow designing reports; if <see langword="true"/>, then also adds a "Manage Reports" button.</param>
|
|
|
|
+ /// <param name="populate">Determines whether the datamodel should be reloaded when printing a report.<br/>Set to <see langword="false"/> if all the data has already been loaded.</param>
|
|
public static void PopulateMenu(MenuItem menu, string sectionName, DataModel model, bool allowdesign, bool populate = false) =>
|
|
public static void PopulateMenu(MenuItem menu, string sectionName, DataModel model, bool allowdesign, bool populate = false) =>
|
|
PopulateMenu(menu as ItemsControl, sectionName, model, allowdesign, populate);
|
|
PopulateMenu(menu as ItemsControl, sectionName, model, allowdesign, populate);
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Populate the <paramref name="menu"/> with a list of reports attached to this data model, loaded through <see cref="LoadReports(string, DataModel, Columns{ReportTemplate}?)"/>.
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <remarks>
|
|
|
|
+ /// This is used for the various places we have context menus for printing reports.
|
|
|
|
+ /// </remarks>
|
|
|
|
+ /// <param name="allowdesign">Allow designing reports; if <see langword="true"/>, then also adds a "Manage Reports" button.</param>
|
|
|
|
+ /// <param name="populate">Determines whether the datamodel should be reloaded when printing a report.<br/>Set to <see langword="false"/> if all the data has already been loaded.</param>
|
|
public static void PopulateMenu(ContextMenu menu, string sectionName, DataModel model, bool allowdesign, bool populate = false) =>
|
|
public static void PopulateMenu(ContextMenu menu, string sectionName, DataModel model, bool allowdesign, bool populate = false) =>
|
|
PopulateMenu(menu as ItemsControl, sectionName, model, allowdesign, populate);
|
|
PopulateMenu(menu as ItemsControl, sectionName, model, allowdesign, populate);
|
|
|
|
|