Example #1
0
        public override void OnActivate(Mangage3DInkStageDetails details)
        {
            base.OnActivate(details);
            try
            {
                if (MainWindow.GetSelectedPrinter() == null)
                {
                    return;
                }

                OnUpdate();
                DisableAllControls();
                text_main.Visible             = true;
                pro_filament_button.Visible   = true;
                pro_filament_button.Enabled   = true;
                micro_filament_button.Visible = true;
                micro_filament_button.Enabled = true;
                cancel_button.Visible         = true;
                cancel_button.Enabled         = true;
                text_title.Text = "Currently inserting:\n\n" + FilamentProfile.GenerateSpoolName(CurrentDetails.current_spool, false);
                text_main.Text  = "Please select filament spool size for insertion:";
            }
            catch (Exception ex)
            {
            }
            OnUpdate();
        }
Example #2
0
 public override void OnActivate(Mangage3DInkStageDetails details)
 {
     base.OnActivate(details);
     WaitingText.Text = FilamentWaitingPage.CurrentWaitingText;
     m_osIdleStopwatchTimer.Stop();
     finishedWaiting = false;
 }
Example #3
0
        public override void OnActivate(Mangage3DInkStageDetails details)
        {
            base.OnActivate(details);
            PrinterObject selectedPrinter = MainWindow.GetSelectedPrinter();

            if (selectedPrinter == null)
            {
                return;
            }

            if (CurrentDetails.current_spool == null)
            {
                MainWindow.ResetToStartup();
            }
            else if (!selectedPrinter.Info.extruder.Z_Valid)
            {
                messagebox.AddMessageToQueue("Sorry. The extruder can't move to a safe position for heating because the Z location has not be calibrated.", PopupMessageBox.MessageBoxButtons.OK);
                MainWindow.ResetToStartup();
            }
            else
            {
                var colors = (FilamentConstants.ColorsEnum)Enum.ToObject(typeof(FilamentConstants.ColorsEnum), CurrentDetails.current_spool.filament_color_code);
                MainWindow.TurnOnHeater(new M3D.Spooling.Client.AsyncCallback(MainWindow.HeaterStartedSuccess), selectedPrinter, settingsManager.GetFilamentTemperature(CurrentDetails.current_spool.filament_type, colors), CurrentDetails.current_spool.filament_type);
            }
        }
 public override void OnActivate(Mangage3DInkStageDetails details)
 {
     base.OnActivate(details);
     filamentset.Value = false;
     Host.SetFocus(custom_temperature_edit);
     custom_temperature_edit.Text = details.current_spool.filament_temperature.ToString();
     textColor.Text    = FilamentConstants.ColorsToString((FilamentConstants.ColorsEnum)Enum.ToObject(typeof(FilamentConstants.ColorsEnum), CurrentDetails.current_spool.filament_color_code));
     textMaterial.Text = CurrentDetails.current_spool.filament_type.ToString();
 }
Example #5
0
        public override void OnActivate(Mangage3DInkStageDetails details)
        {
            base.OnActivate(details);
            PrinterObject selectedPrinter = MainWindow.GetSelectedPrinter();

            if (selectedPrinter == null)
            {
                return;
            }

            var num = (int)selectedPrinter.SendManualGCode(new AsyncCallback(DoNextRetractionStep), new FilamentRetractingFilament.RetractionProcessData(progressBar, selectedPrinter, 0), "G90", "G92");
        }
Example #6
0
        public override void OnActivate(Mangage3DInkStageDetails details)
        {
            base.OnActivate(details);
            PrinterObject selectedPrinter = MainWindow.GetSelectedPrinter();

            if (selectedPrinter == null)
            {
                return;
            }

            if (CurrentDetails.current_spool == null)
            {
                MainWindow.ResetToStartup();
            }

            var num = (int)selectedPrinter.SendManualGCode(new M3D.Spooling.Client.AsyncCallback(CheckPrinterAndHeater), selectedPrinter, "M117", "M114");
        }
Example #7
0
 public override void OnActivate(Mangage3DInkStageDetails details)
 {
     base.OnActivate(details);
     color_combobox.ListBox.Items.Clear();
     color_combobox.ListBox.Items = settingsManager.FilamentDictionary.GenerateColors(FilamentSpool.TypeEnum.NoFilament).Cast <object>().ToList <object>();
     if (CurrentDetails.user_filaments.Count > 1)
     {
         foreach (M3D.Spooling.Common.Filament userFilament in CurrentDetails.user_filaments)
         {
             if (!color_combobox.ListBox.Items.Contains(userFilament.ColorStr))
             {
                 color_combobox.ListBox.Items.Add(userFilament.ColorStr);
             }
         }
     }
     color_combobox.ListBox.Items.Sort();
     color_combobox.Select = 0;
 }
Example #8
0
        public override void OnActivate(Mangage3DInkStageDetails details)
        {
            base.OnActivate(details);
            insert_filament_text.Text = CurrentDetails.current_spool.filament_location != FilamentSpool.Location.Internal ? "Insert your new 3D Ink into the external feed port.\n\nWait a few moments until the new 3D Ink begins\n exiting the nozzle." : "The printer is now loading 3D Ink through it's internal port.\nYou may need to continue to push the 3D Ink into the 3D Ink tube to make sure it is in all of the way.\n\nWait a few moments until the new 3D Ink begins exiting the nozzle.";
            if (CurrentDetails.current_spool.filament_type == FilamentSpool.TypeEnum.CAM)
            {
                insert_filament_text.Text = "\n\nWarning: Chameleon Ink may appear white when heated and exiting nozzle.";
            }

            PrinterObject selectedPrinter = MainWindow.GetSelectedPrinter();

            if (selectedPrinter == null)
            {
                return;
            }

            var num = (int)selectedPrinter.SendManualGCode(new AsyncCallback(DoNextExtrusionStep), new FilamentInsertNewFilament.ExtrusionProcessData(progressBar, selectedPrinter, 0), "G90", "G92");
        }
Example #9
0
        public override void OnActivate(Mangage3DInkStageDetails details)
        {
            base.OnActivate(details);
            text_main.Text = "";
            text_main.Text = CurrentDetails.current_spool.filament_type != FilamentSpool.TypeEnum.CAM ? "Please wait. \n\nRemove filament is extruding a small amount of filament first to prevent clogs." : "Please wait. \n\nRemove filament is extruding a small amount of filament first to prevent clogs.\n\nWarning: Chameleon Ink may appear white when heated and exiting nozzle.";
            PrinterObject selectedPrinter = MainWindow.GetSelectedPrinter();

            if (selectedPrinter == null)
            {
                return;
            }

            if (CurrentDetails.current_spool == null)
            {
                MainWindow.ResetToStartup();
            }
            else
            {
                var num = (int)selectedPrinter.SendManualGCode(new AsyncCallback(MainWindow.GotoPageAfterOperation), new Manage3DInkMainWindow.PageAfterLockDetails(selectedPrinter, Manage3DInkMainWindow.PageID.Page2_RetractingFilament, CurrentDetails), "G4 S5", "G91", PrinterCompatibleString.Format("G0 E{0} F{1}", 50f, 90.0));
            }
        }
 public override void OnActivate(Mangage3DInkStageDetails details)
 {
     base.OnActivate(details);
 }
Example #11
0
 public override void OnActivate(Mangage3DInkStageDetails details)
 {
     base.OnActivate(details);
     _continueTimer.Restart();
 }
Example #12
0
        public override void OnActivate(Mangage3DInkStageDetails details)
        {
            base.OnActivate(details);
            insertwarn_sent = false;
            try
            {
                PrinterObject selectedPrinter = MainWindow.GetSelectedPrinter();
                if (selectedPrinter == null)
                {
                    return;
                }

                OnUpdate();
                DisableAllControls();
                text_main.Visible           = true;
                add_button_external.Visible = true;
                add_button_external.Enabled = true;
                add_button_internal.Visible = true;
                add_button_internal.Enabled = true;
                cancel_button.Visible       = true;
                cancel_button.Enabled       = true;
                if (CurrentDetails.mode == Manage3DInkMainWindow.Mode.SetFilamentLocationInsertingNew)
                {
                    text_title.Text          = "Currently inserting:\n\n" + FilamentProfile.GenerateSpoolName(CurrentDetails.current_spool, false);
                    text_main.Text           = "Please select filament location for insertion:";
                    add_button_external.Text = "INSERT FILAMENT (EXTERNAL)";
                    add_button_internal.Text = "INSERT FILAMENT (INTERNAL)";
                }
                else if (CurrentDetails.mode == Manage3DInkMainWindow.Mode.SetFilamentLocationAlreadyInserted)
                {
                    text_title.Text          = "Already inserted:\n\n" + FilamentProfile.GenerateSpoolName(CurrentDetails.current_spool, false);
                    text_main.Text           = "Please select filament location:";
                    add_button_external.Text = "EXTERNAL";
                    add_button_internal.Text = "INTERNAL";
                }
                if (selectedPrinter.IsPausedorPausing)
                {
                    text_main.Text += "\n\n\nFilament cannot be loaded internally while the printer is paused.";
                    if (add_button_internal.Visible)
                    {
                        add_button_internal.Enabled = false;
                    }
                }
                else
                {
                    if (CurrentDetails.current_spool.filament_type != FilamentSpool.TypeEnum.FLX)
                    {
                        if (CurrentDetails.current_spool.filament_type != FilamentSpool.TypeEnum.TGH)
                        {
                            goto label_17;
                        }
                    }
                    if (!insertwarn_sent)
                    {
                        insertwarn_sent = true;
                        messagebox.AddMessageToQueue(new SpoolerMessage(MessageType.UserDefined, "Warning: Flexible filament can only be inserted externally."));
                    }
                    text_main.Text += "\n\n\nLoading flexible filaments internally can cause the filament to snag and in turn, cause prints to fail.";
                    if (add_button_internal.Visible)
                    {
                        add_button_internal.Enabled = false;
                    }
                }
            }
            catch (Exception ex)
            {
            }
label_17:
            OnUpdate();
        }
Example #13
0
 public override void OnActivate(Mangage3DInkStageDetails details)
 {
     base.OnActivate(details);
     finishedWaiting.Value = false;
 }
Example #14
0
 public override void OnActivate(Mangage3DInkStageDetails details)
 {
     base.OnActivate(details);
     CheatEdit.Text = "";
     Host.SetFocus(CheatEdit);
 }