Exemple #1
0
 public void AddRecentPrintHistory(JobParams printerJob, PrinterObject printer, string slicerProfileName, List <Slicer.General.KeyValuePair <string, string> > complete_slicer_settings, List <PrintDetails.ObjectDetails> original_objectList)
 {
     RecentPrintsHistory.CreatePrintHistoryFolder(printerJob, printer, slicerProfileName, complete_slicer_settings, original_objectList, out PrintHistory cph);
     startedPrintList.Insert(0, cph);
     RefreshListChanged();
     SaveStartedPrints();
 }
Exemple #2
0
        public void SaveRecord(LibraryRecord record)
        {
            if (!(record is RecentPrintsHistory.PrintHistory))
            {
                return;
            }

            var printHistory   = (RecentPrintsHistory.PrintHistory)record;
            var str            = "Untitled.zip";
            var saveFileDialog = new SaveFileDialog
            {
                FileName     = str,
                DefaultExt   = ".zip",
                AddExtension = true,
                Filter       = "Zip (*.zip)|*.zip"
            };

            if (saveFileDialog.ShowDialog() != DialogResult.OK || !RecentPrintsHistory.SavePrintHistoryToZip(saveFileDialog.FileName, printHistory))
            {
                return;
            }

            libraryView.RecentModels.CopyAndAssignIconForLibrary(saveFileDialog.FileName, printHistory.iconfilename);
        }
Exemple #3
0
 public RecentPrintsTab(LibraryView libraryView, ModelLoadingManager model_loading_manager)
 {
     this.model_loading_manager = model_loading_manager;
     this.libraryView           = libraryView;
     recentPrintsHistory        = new RecentPrintsHistory();
 }