Beispiel #1
0
 public PrinterViewLoadData(PrintDetails.PrintJobObjectViewDetails printerview_settings, PrintDetails.M3DSettings?printSettings, string directory, string zipfile)
 {
     this.printerview_settings = printerview_settings;
     this.printSettings        = printSettings;
     this.directory            = directory;
     this.zipfile = zipfile;
 }
Beispiel #2
0
        private void LoadPrinterView(PrintDetails.PrintJobObjectViewDetails printerview_settings, string printerSettingsXMLFile, string directory, string zipfile)
        {
            var printSettings = new PrintDetails.M3DSettings?();

            if (!string.IsNullOrEmpty(printerSettingsXMLFile))
            {
                printSettings = SettingsManager.LoadPrintJobInfoFile(printerSettingsXMLFile);
            }

            var data = new ModelLoadingManager.PrinterViewLoadData(printerview_settings, printSettings, directory, zipfile);

            if (printSettings.HasValue && settings.CurrentAppearanceSettings.ShowPrinterMismatchWarning && !PrinterObject.IsProfileMemberOfFamily(printSettings.Value.profileName, printerview.CurrentFamilyName))
            {
                var profileMismatchDialog = Resources.profileMismatchDialog;
                var profileName           = printSettings.Value.profileName;
                var currentFamilyName     = printerview.CurrentFamilyName;
                var newValue = string.Format(string.Format(Locale.GlobalLocale.T("T_ProfileMismatchDialog_Message"), profileName, currentFamilyName), profileName, currentFamilyName);
                messagebox.AddXMLMessageToQueue(new PopupMessageBox.MessageDataXML(new SpoolerMessage(), profileMismatchDialog.Replace("{MESSAGE}", newValue), new PopupMessageBox.XMLButtonCallback(TypeMismatchButtonCallback), data));
            }
            else
            {
                LoadPrinterView(data);
            }
        }
Beispiel #3
0
 public void LoadPrinterView(PrintDetails.PrintJobObjectViewDetails printerview_settings)
 {
     LoadPrinterView(printerview_settings, "", "", "");
 }