Enable export on library selections

This commit is contained in:
John Lewin 2017-08-09 16:25:07 -07:00
parent 9c57c831fb
commit 6dd9957cfc
2 changed files with 4 additions and 12 deletions

View file

@ -806,12 +806,12 @@ namespace MatterHackers.MatterControl.PrintLibrary
if (libraryView.SelectedItems.Count == 1)
{
var libraryItem = libraryView.SelectedItems.Select(i => i.Model).FirstOrDefault();
if (libraryItem != null)
if (libraryItem is ILibraryContentStream libraryContent)
{
throw new NotImplementedException("Export not implemented");
var exportPage = new ExportPrintItemPage(libraryContent);
// TODO: Implement
//ApplicationController.OpenExportWindow(await this.GetPrintItemWrapperAsync());
string windowTitle = "MatterControl".Localize() + ": " + "Export File".Localize();
WizardWindow.Show("/ExportPrintItemPage", "", exportPage);
}
}
}