private void switchSkeinforge_OnChange(SwitchButton button)
 {
     if (updating)
     {
         return;
     }
     Main.slicer.ActiveSlicer = Slicer.SlicerID.Skeinforge;
 }
 private void switchSlic3rActive_OnChange(SwitchButton button)
 {
     if (updating || Main.slicer == null)
     {
         return;
     }
     Main.slicer.ActiveSlicer = Slicer.SlicerID.Slic3r;
 }
Beispiel #3
0
 private void switchConnect_Changed(SwitchButton b)
 {
     if (switchConnect.On)
     {
         con.open();
     }
     else
     {
         con.close();
     }
 }
        //private void toggleSlicer()
        //{
        //    if (switchSlic3rActive.On ==true)
        //    //if (Main.slicer.ActiveSlicer == Slicer.SlicerID.Skeinforge)
        //    {
        //        Main.slicer.ActiveSlicer = Slicer.SlicerID.Slic3r;
        //        //switchSlic3rActive.On = true;
        //        switchSkeinforge.On = false;

        //    }
        //    else// if(Main.slicer.ActiveSlicer == Slicer.SlicerID.Slic3r)
        //    {
        //        //Main.slicer.ActiveSlicer = Slicer.SlicerID.Skeinforge   ;
        //        //switchSlic3rActive.On = false;
        //        //switchSkeinforge.On = true;
        //    }
        //    //switchSlic3rActive.Invalidate();
        //   // switchSkeinforge.Invalidate();


        //}

        private void switchSlic3rActive_OnChange(SwitchButton button)
        {
            //// if (updating || Main.slicer==null) return;
            if (updating || Main.slicer == null)
            {
                return;
            }


            Main.slicer.ActiveSlicer = Slicer.SlicerID.Slic3r;

            // UpdateSelection();
        }
        private void switchSkeinforge_OnChange(SwitchButton button)
        {
            //if (Main.slicer == null)
            //{
            //    return;
            //}
            if (updating || Main.slicer == null)
            {
                return;
            }


            Main.slicer.ActiveSlicer = Slicer.SlicerID.Skeinforge;

            // UpdateSelection();
        }
Beispiel #6
0
 private void switchPower_Change(SwitchButton b)
 {
     if (Main.conn.connected == false)
     {
         return;
     }
     con.GetInjectLock();
     if (switchPower.On)
     {
         con.injectManualCommand("M80");
     }
     else
     {
         con.injectManualCommand("M81");
     }
     con.ReturnInjectLock();
 }
Beispiel #7
0
 private void switchFanOn_Change(SwitchButton b)
 {
     if (Main.conn.connected == false)
     {
         return;
     }
     if (!createCommands)
     {
         return;
     }
     con.GetInjectLock();
     if (switchFanOn.On)
     {
         con.injectManualCommand("M106 S" + trackFanVoltage.Value);
     }
     else
     {
         con.injectManualCommand("M107");
     }
     con.ReturnInjectLock();
 }
 private void switchLaserOn_Change(SwitchButton b)
 {
     if (Main.conn.connected == false)
     {
         return;
     }
     if (!createCommands)
     {
         return;
     }
     con.GetInjectLock();
     if (switchLaserOn.On)
     {
         //if(ann.fanVoltage!=trackFanVoltage.Value)
         con.injectManualCommand("M600 S" + trackFanVoltage.Value);
     }
     else
     {
         con.injectManualCommand("M601");
     }
     con.ReturnInjectLock();
 }
Beispiel #9
0
 private void switchBedHeat_Change(SwitchButton b)
 {
     if (Main.conn.connected == false)
     {
         return;
     }
     if (!createCommands)
     {
         return;
     }
     //int temp = 0;
     //int.TryParse(textPrintbedTemp.Text, out temp);
     con.GetInjectLock();
     if (switchBedHeat.On)
     {
         con.injectManualCommand("M140 S" + numericPrintBed.Value);
     }
     else
     {
         con.injectManualCommand("M140 S0");
     }
     con.ReturnInjectLock();
 }
Beispiel #10
0
 private void switchExtruderHeatOn_Change(SwitchButton b)
 {
     if (Main.conn.connected == false)
     {
         return;
     }
     if (!createCommands)
     {
         return;
     }
     //int temp = 0;
     //int.TryParse(textExtruderSetTemp.Text,out temp);
     con.GetInjectLock();
     if (switchExtruderHeatOn.On)
     {
         con.injectManualCommand("M104 S" + numericUpDownExtruder.Value);
     }
     else
     {
         con.injectManualCommand("M104 S0");
     }
     con.ReturnInjectLock();
 }
Beispiel #11
0
 private void switchInfo_Change(SwitchButton b)
 {
     sendDebug();
 }
Beispiel #12
0
 private void switchFanOn_Change(SwitchButton b)
 {
     if (Main.conn.connected == false) return;
     if (!createCommands) return;
     con.GetInjectLock();
     if (switchFanOn.On)
     {
         con.injectManualCommand("M106 S" + trackFanVoltage.Value);
     }
     else
     {
         con.injectManualCommand("M107");
     }
     con.ReturnInjectLock();
 }
Beispiel #13
0
 private void switchExtruderHeatOn_Change(SwitchButton b)
 {
     if (Main.conn.connected == false) return;
     if (!createCommands) return;
     int temp = 0;
     int.TryParse(textExtruderSetTemp.Text,out temp);
     con.GetInjectLock();
     if (switchExtruderHeatOn.On)
     {
         con.injectManualCommand("M104 S" + temp);
     }
     else
     {
         con.injectManualCommand("M104 S0");
     }
     con.ReturnInjectLock();
 }
Beispiel #14
0
 private void switchErrors_Change(SwitchButton b)
 {
     sendDebug();
 }
Beispiel #15
0
 private void switchDryRun_Change(SwitchButton b)
 {
     sendDebug();
 }
Beispiel #16
0
 private void switchBedHeat_Change(SwitchButton b)
 {
     if (Main.conn.connected == false) return;
     if (!createCommands) return;
     int temp = 0;
     int.TryParse(textPrintbedTemp.Text, out temp);
     con.GetInjectLock();
     if (switchBedHeat.On)
     {
         con.injectManualCommand("M140 S" + temp);
     }
     else
     {
         con.injectManualCommand("M140 S0");
     }
     con.ReturnInjectLock();
 }
Beispiel #17
0
 private void switchACK_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
Beispiel #18
0
 private void switchCommandsSend_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
Beispiel #19
0
 private void switchSlic3rActive_OnChange(SwitchButton button)
 {
     if (updating || Main.slicer==null) return;
         Main.slicer.ActiveSlicer = Slicer.SlicerID.Slic3r;
 }
Beispiel #20
0
 private void switchDryRun_Change(SwitchButton b)
 {
     sendDebug();
 }
Beispiel #21
0
 private void switchInfo_Change(SwitchButton b)
 {
     sendDebug();
 }
Beispiel #22
0
 private void switchWarnings_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
Beispiel #23
0
 private void switchPower_Change(SwitchButton b)
 {
     if (Main.conn.connected == false) return;
     con.GetInjectLock();
     if (switchPower.On)
     {
         con.injectManualCommand("M80");
     }
     else
     {
         con.injectManualCommand("M81");
     }
     con.ReturnInjectLock();
 }
 private void switchWarnings_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
Beispiel #25
0
 private void switchAutoscroll_OnChange(SwitchButton button)
 {
     listLog.Autoscroll = switchAutoscroll.On;
     FormToReg();
 }
Beispiel #26
0
 private void switchErrors_Change(SwitchButton b)
 {
     sendDebug();
 }
 private void switchAutoscroll_OnChange(SwitchButton button)
 {
     listLog.Autoscroll = switchAutoscroll.On;
     FormToReg();
 }
 private void switchCommandsSend_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
 private void switchInfo_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
Beispiel #30
0
 private void switchSkeinforge_OnChange(SwitchButton button)
 {
     if (updating) return;
     Main.slicer.ActiveSlicer = Slicer.SlicerID.Skeinforge;
 }
Beispiel #31
0
 private void switchConnect_Changed(SwitchButton b)
 {
     if (switchConnect.On) con.open(); else con.close();
 }