示例#1
0
 public override void OnActivate(PrintJobDetails details)
 {
     PrintDialogWindow.SetSize(480, 340);
     PrintDialogWindow.Refresh();
     myPrinter      = details.printer;
     canceled.Value = false;
     var num = (int)details.printer.AcquireLock(new AsyncCallback(OnLockedBeforeSlicing), details);
 }
示例#2
0
 public override void OnActivate(PrintJobDetails details)
 {
     SlicerConnection.SlicerSettingStack.PushSettings();
     globalErrorCount         = 0;
     globalWarningCount       = 0;
     tabsErrorWarningCount    = new Dictionary <string, AdvancedPrintSettingsFrame.TabErrorStateCount>();
     settingErrorWarningState = new Dictionary <string, AdvancedPrintSettingsFrame.ErrorStateEnum>();
     buttonElements           = new List <Element2D>();
     GenerateFromSlicerSettings(SlicerConnection.SlicerSettings);
     PrintDialogWindow.SetSize(750, 500);
     PrintDialogWindow.Refresh();
     CurrentJobDetails = details;
 }
示例#3
0
 public override void OnActivate(PrintJobDetails details)
 {
     PrintDialogWindow.SetSize(480, 340);
     PrintDialogWindow.Refresh();
     ResetSlicerState();
     bProcessingAndSavingModel              = false;
     bCanCheckForNoJob                      = false;
     CurrentJobDetails                      = details;
     CurrentJobDetails.Estimated_Filament   = -1f;
     CurrentJobDetails.Estimated_Print_Time = -1f;
     Enabled             = true;
     status_text.Visible = true;
     SetSize(480, 340);
     StartSlicer(CurrentJobDetails.settings);
 }
示例#4
0
        public override void OnActivate(PrintJobDetails details)
        {
            PrintDialogWindow.SetSize(480, 340);
            PrintDialogWindow.Refresh();
            CurrentJobDetails = details;
            var num1 = (int)CurrentJobDetails.Estimated_Print_Time + 1800;
            var num2 = num1 / 60;
            var num3 = num2 / 60;
            var num4 = num2 - num3 * 60;

            CurrentJobDetails.Estimated_Print_Time = num1;
            estimated_time.Text     = num3.ToString() + " hours, " + num4.ToString() + " minutes";
            estimated_filament.Text = ((int)CurrentJobDetails.Estimated_Filament * 0.0393701f).ToString() + " inches";
            countdown_timer.Restart();
        }
示例#5
0
        public override void OnActivate(PrintJobDetails details)
        {
            PrintDialogWindow.SetSize(750, 550);
            PrintDialogWindow.Refresh();
            CurrentJobDetails = details;
            LoadSettings();
            SlicerConnection.SlicerSettingStack.PushSettings();
            SetFillandQualityButtons();
            PrinterObject selectedPrinter = SelectedPrinter;

            CheckVerifyBedAvailability(selectedPrinter, true);
            CheckHeatedBedAvailability(selectedPrinter, true);
            CheckSDCardAvailability(selectedPrinter, true);
            SetSupportEnabledControls(false);
            mQualityButtonsSet = true;
        }
示例#6
0
 public override void OnActivate(PrintJobDetails details)
 {
     PrintDialogWindow.SetSize(480, 340);
     PrintDialogWindow.Refresh();
     ResetSlicerState();
     CurrentJobDetails = details;
     CurrentJobDetails.Estimated_Filament   = -1f;
     CurrentJobDetails.Estimated_Print_Time = -1f;
     Enabled = true;
     cancel_button.Visible   = true;
     progressbar.Visible     = true;
     pleasewait_text.Visible = true;
     cancel_button.CenterHorizontallyInParent = true;
     SetSize(480, 340);
     StartSlicer(CurrentJobDetails.settings);
 }