Making more strings get into localization.
Making the print leveling warn if the extruder needs to go below 0.
This commit is contained in:
parent
50d340b3ca
commit
44da6b1bd8
3 changed files with 125 additions and 7 deletions
|
|
@ -192,8 +192,18 @@ namespace MatterHackers.MatterControl
|
|||
return zButtons;
|
||||
}
|
||||
|
||||
string zIsTooLowMessage = "You cannot move any lower. This position on your bed is too low for the extruder to reach. You need to raise your bed, or adjust your limits to allow the extruder to go lower.".Localize();
|
||||
string zTooLowTitle = "Waring Moving Too Low".Localize();
|
||||
void zMinusControl_Click(object sender, MouseEventArgs mouseEvent)
|
||||
{
|
||||
if (PrinterCommunication.Instance.LastReportedPosition.z - moveAmount < 0)
|
||||
{
|
||||
if (!StyledMessageBox.ShowMessageBox(zIsTooLowMessage, zTooLowTitle, StyledMessageBox.MessageType.OK))
|
||||
{
|
||||
// don't move the bed lower it will not work when we print.
|
||||
return;
|
||||
}
|
||||
}
|
||||
PrinterCommunication.Instance.MoveRelative(PrinterCommunication.Axis.Z, -moveAmount, 1000);
|
||||
PrinterCommunication.Instance.ReadPosition();
|
||||
}
|
||||
|
|
@ -325,7 +335,6 @@ namespace MatterHackers.MatterControl
|
|||
homingPageInstructions = string.Format("{0}:\n\n\t• {1}\n\n{2}", homingPageInstructionsTxtOne, homingPageInstructionsTxtTwo, homingPageInstructionsTxtThree);
|
||||
doneInstructions = string.Format("{0}\n\n\t• {1}\n\n{2}",doneInstructionsTxt, doneInstructionsTxtTwo, doneInstructionsTxtThree);
|
||||
|
||||
|
||||
string printLevelWizardTitle = LocalizedString.Get("MatterControl");
|
||||
string printLevelWizardTitleFull = LocalizedString.Get ("Print Leveling Wizard");
|
||||
Title = string.Format("{0} - {1}",printLevelWizardTitle, printLevelWizardTitleFull);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue