private void MoveAxis(double amount)
        {
            var commands = new List <string>();
            var value    = amount.ToString().Replace(",", "."); // Allways decimal point

            switch (StepperMotor)
            {
            case "Z":
                commands.Add("G91");
                commands.Add($"G1 Z{value}");
                commands.Add("G90");
                if (ZeroPositionAfterEachMove)
                {
                    commands.Add("G92 Z0");
                }
                if (SendCurrentPosition)
                {
                    commands.Add("M114");
                }
                MarlinCommunication.SendCommand(commands);
                break;

            case "E0":
                //TODO: Fixa hur Extruder communikation ser ut
                break;
            }
        }
        private void MoveAxis(string stepperMotor, double amount)
        {
            var commands = new List <string>();
            var value    = amount.ToString().Replace(",", "."); //Allways decimalpoint

            commands.Add("G91");
            commands.Add($"G1 {stepperMotor}{value}");
            commands.Add("G90");
            if (SendCurrentPosition)
            {
                commands.Add("M114");
            }
            MarlinCommunication.SendCommand(commands);
        }
        private void btnZero_Click(object sender, EventArgs e)
        {
            //TODO: Haneta Extruder / Z axis

            MarlinCommunication.SendCommand("G92 Z0");
        }