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;
 }
Example #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();
        }
Example #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();
 }
Example #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();
 }
Example #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();
 }
Example #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();
 }
Example #11
0
 private void switchInfo_Change(SwitchButton b)
 {
     sendDebug();
 }
Example #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();
 }
Example #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();
 }
Example #14
0
 private void switchErrors_Change(SwitchButton b)
 {
     sendDebug();
 }
Example #15
0
 private void switchDryRun_Change(SwitchButton b)
 {
     sendDebug();
 }
Example #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();
 }
Example #17
0
 private void switchACK_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
Example #18
0
 private void switchCommandsSend_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
Example #19
0
 private void switchSlic3rActive_OnChange(SwitchButton button)
 {
     if (updating || Main.slicer==null) return;
         Main.slicer.ActiveSlicer = Slicer.SlicerID.Slic3r;
 }
Example #20
0
 private void switchDryRun_Change(SwitchButton b)
 {
     sendDebug();
 }
Example #21
0
 private void switchInfo_Change(SwitchButton b)
 {
     sendDebug();
 }
Example #22
0
 private void switchWarnings_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
Example #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();
 }
Example #24
0
 private void switchWarnings_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
Example #25
0
 private void switchAutoscroll_OnChange(SwitchButton button)
 {
     listLog.Autoscroll = switchAutoscroll.On;
     FormToReg();
 }
Example #26
0
 private void switchErrors_Change(SwitchButton b)
 {
     sendDebug();
 }
Example #27
0
 private void switchAutoscroll_OnChange(SwitchButton button)
 {
     listLog.Autoscroll = switchAutoscroll.On;
     FormToReg();
 }
Example #28
0
 private void switchCommandsSend_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
Example #29
0
 private void switchInfo_OnChange(SwitchButton button)
 {
     filter();
     FormToReg();
 }
Example #30
0
 private void switchSkeinforge_OnChange(SwitchButton button)
 {
     if (updating) return;
     Main.slicer.ActiveSlicer = Slicer.SlicerID.Skeinforge;
 }
Example #31
0
 private void switchConnect_Changed(SwitchButton b)
 {
     if (switchConnect.On) con.open(); else con.close();
 }