コード例 #1
0
        public DesignTimePrinterViewModel() : base(new DesignTimePrinterProvider(), null, null, null, new DesignTimeTranslationUpdater(), new DesignTimePrinterHelper(), CurrentSettings, new GpoSettingsDefaults())
        {
            var settings = CurrentSettings.Settings;

            PrinterMappings.Add(new PrinterMappingWrapper(new PrinterMapping("PDFCreator", ""), settings.ConversionProfiles));
            PrinterMappings.Add(new PrinterMappingWrapper(new PrinterMapping("PDFCreator2", ""), settings.ConversionProfiles));
            PrimaryPrinter = PdfCreatorPrinters.First();
        }
        public DesignTimePrinterTabViewModel() : base(new DesignTimePrinterProvider(), new TranslationProxy(), null, null, null, null)
        {
            var settings = new PdfCreatorSettings(null);

            settings.ConversionProfiles.Add(new ConversionProfile());

            SetSettingsAndRaiseNotifications(settings, new GpoSettingsDefaults());

            PrinterMappings.Add(new PrinterMappingWrapper(new PrinterMapping("PDFCreator", ""), settings.ConversionProfiles));
            PrinterMappings.Add(new PrinterMappingWrapper(new PrinterMapping("PDFCreator2", ""), settings.ConversionProfiles));
            PrimaryPrinter = PdfCreatorPrinters.First();
        }
コード例 #3
0
        public DesignTimePrinterViewModel() : base(
                new DesignTimePrinterProvider(),
                new DefaultSettingsProvider(),
                new DesignTimeCurrentSettings <ObservableCollection <PrinterMapping> >(),
                new DesignTimeCurrentSettings <ObservableCollection <ConversionProfile> >(),
                null,
                null,
                new DesignTimeTranslationUpdater(),
                new DesignTimePrinterHelper(),
                new GpoSettingsDefaults()
                )

        {
            var profiles = ProfilesProvider.Settings;

            PrinterMappings.Add(new PrinterMappingWrapper(new PrinterMapping("PDFCreator", ""), profiles));
            PrinterMappings.Add(new PrinterMappingWrapper(new PrinterMapping("PDFCreator2", ""), profiles));
            PrimaryPrinter = PdfCreatorPrinters.First();
        }