コード例 #1
0
 public static bool SetupRequired(PrinterConfig printer, bool requiresLoadedFilament)
 {
     return(printer == null ||
            LevelingValidation.NeedsToBeRun(printer) ||              // PrintLevelingWizard
            ZCalibrationWizard.NeedsToBeRun(printer) ||
            (requiresLoadedFilament && LoadFilamentWizard.NeedsToBeRun0(printer)) ||
            (requiresLoadedFilament && LoadFilamentWizard.NeedsToBeRun1(printer)) ||
            XyCalibrationWizard.NeedsToBeRun(printer));
 }
コード例 #2
0
        public static bool SetupRequired(PrinterConfig printer, bool requiresLoadedFilament)
        {
            // TODO: Verify invoked with low frequency
            var printerShim = ApplicationController.Instance.Shim(printer);

            return(LevelingValidation.NeedsToBeRun(printerShim) ||          // PrintLevelingWizard
                   ZCalibrationWizard.NeedsToBeRun(printer) ||
                   (requiresLoadedFilament && LoadFilamentWizard.NeedsToBeRun0(printer)) ||
                   (requiresLoadedFilament && LoadFilamentWizard.NeedsToBeRun1(printer)) ||
                   XyCalibrationWizard.NeedsToBeRun(printer));
        }
コード例 #3
0
 public static bool SetupRequired(PrinterConfig printer)
 {
     return(LevelingValidation.NeedsToBeRun(printer) ||          // PrintLevelingWizard
            ProbeCalibrationWizard.NeedsToBeRun(printer) ||
            FilamentSetupWizard.SetupRequired(printer));
 }