예제 #1
0
        private void Connection_ConnectionSucceeded(object sender, EventArgs e)
        {
            if (sender is PrinterConfig printer)
            {
                if (PrinterCalibrationWizard.SetupRequired(printer))
                {
                    UiThread.RunOnIdle(() =>
                    {
                        DialogWindow.Show(
                            new PrinterCalibrationWizard(printer, AppContext.Theme),
                            advanceToIncompleteStage: true);
                    });

                    return;
                }
            }
        }
예제 #2
0
 private static bool PrinterSetupRequired(PrinterConfig printer)
 {
     return(printer.Connection.IsConnected &&
            PrinterCalibrationWizard.SetupRequired(printer, requiresLoadedFilament: true));
 }