Esempio n. 1
0
        public static void ShowPrinterSetup(bool userRequestedNewPrinter = false)
        {
            WizardWindow wizardWindow = GetWindow("PrinterSetup");

            wizardWindow.Title = "Setup Wizard".Localize();

            // Do the printer setup logic
            // Todo - detect wifi connectivity
            bool WifiDetected = MatterControlApplication.Instance.IsNetworkConnected();

            if (!WifiDetected)
            {
                wizardWindow.ChangeToPage <SetupWizardWifi>();
            }
            else
            {
                wizardWindow.ChangeToSetupPrinterForm(userRequestedNewPrinter);
            }
        }