Add mechanism for export to select context before options

This commit is contained in:
John Lewin 2018-11-12 09:32:08 -08:00
parent f0da7ce4cc
commit d90102d8f5
5 changed files with 47 additions and 34 deletions

View file

@ -41,6 +41,7 @@ using MatterHackers.MatterControl.CustomWidgets;
using MatterHackers.MatterControl.Library;
using MatterHackers.MatterControl.PartPreviewWindow;
using MatterHackers.MatterControl.PrinterCommunication;
using MatterHackers.MatterControl.PrinterControls.PrinterConnections;
using MatterHackers.MatterControl.PrintQueue;
using static MatterHackers.MatterControl.PrintLibrary.PrintLibraryWidget;
@ -929,11 +930,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
Icon = AggContext.StaticData.LoadIcon("cube_export.png", 16, 16, theme.InvertIcons),
Action = (selectedLibraryItems, listView) =>
{
// Previously - exportButton_Click(object sender, EventArgs e)
// Open export options
var exportPage = new ExportPrintItemPage(libraryView.SelectedItems.Select(item => item.Model), true);
DialogWindow.Show(exportPage);
ApplicationController.Instance.ExportLibraryItems(libraryView.SelectedItems.Select(item => item.Model));
},
IsEnabled = (selectedListItems, listView) =>
{