Interactive user prompts should confirm the action requested

This commit is contained in:
Lars Brubaker 2016-12-12 17:42:22 -08:00
parent 11c8447c8b
commit ecaf2d3cdf
7 changed files with 18 additions and 6 deletions

View file

@ -468,7 +468,7 @@ namespace MatterHackers.MatterControl.ActionBar
{
if (timeSincePrintStarted.IsRunning && timeSincePrintStarted.ElapsedMilliseconds > (2 * 60 * 1000))
{
StyledMessageBox.ShowMessageBox(onConfirmCancelPrint, cancelCurrentPrintMessage, cancelCurrentPrintTitle, StyledMessageBox.MessageType.YES_NO);
StyledMessageBox.ShowMessageBox(onConfirmCancelPrint, cancelCurrentPrintMessage, cancelCurrentPrintTitle, StyledMessageBox.MessageType.YES_NO, "Cancel Print".Localize(), "Continue Printing".Localize());
}
else
{

View file

@ -228,7 +228,7 @@ namespace MatterHackers.MatterControl.ActionBar
{
if (PrinterConnectionAndCommunication.Instance.PrinterIsPrinting)
{
StyledMessageBox.ShowMessageBox(onConfirmStopPrint, disconnectAndCancelMessage, disconnectAndCancelTitle, StyledMessageBox.MessageType.YES_NO);
StyledMessageBox.ShowMessageBox(onConfirmStopPrint, disconnectAndCancelMessage, disconnectAndCancelTitle, StyledMessageBox.MessageType.YES_NO, "Disconnect".Localize(), "Stay Connected".Localize());
}
else
{

View file

@ -446,7 +446,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
else
{
string message = String.Format("Cannot find\n'{0}'.\nWould you like to remove it from the library?", pathAndFile);
StyledMessageBox.ShowMessageBox(null, message, "Item not found", StyledMessageBox.MessageType.YES_NO);
StyledMessageBox.ShowMessageBox(null, message, "Item not found", StyledMessageBox.MessageType.YES_NO, "Remove".Localize(), "Cancel".Localize());
}
}
}

View file

@ -373,7 +373,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
if (saveButtons.Visible)
{
StyledMessageBox.ShowMessageBox(ExitEditingAndSaveIfRequired, "Would you like to save your changes before exiting the editor?".Localize(), "Save Changes".Localize(), StyledMessageBox.MessageType.YES_NO);
StyledMessageBox.ShowMessageBox(ExitEditingAndSaveIfRequired, "Would you like to save your changes before exiting the editor?".Localize(), "Save Changes".Localize(), StyledMessageBox.MessageType.YES_NO, "Save Changed".Localize(), "Discard Changes".Localize());
}
else
{

View file

@ -1444,7 +1444,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication
else
{
string message = String.Format(removeFromQueueMessage, pathAndFile);
StyledMessageBox.ShowMessageBox(onRemoveMessageConfirm, message, itemNotFoundMessage, StyledMessageBox.MessageType.YES_NO);
StyledMessageBox.ShowMessageBox(onRemoveMessageConfirm, message, itemNotFoundMessage, StyledMessageBox.MessageType.YES_NO, "Remove".Localize(), "Cancel".Localize());
}
}
}

View file

@ -180,7 +180,7 @@ namespace MatterHackers.MatterControl.PrintQueue
string notFoundMessageEnd = LocalizedString.Get("Would you like to remove it from the queue");
string message = "{0}:\n'{1}'\n\n{2}?".FormatWith(notFoundMessage, maxLengthName, notFoundMessageEnd);
string titleLabel = LocalizedString.Get("Item not Found");
StyledMessageBox.ShowMessageBox(onConfirmRemove, message, titleLabel, StyledMessageBox.MessageType.YES_NO);
StyledMessageBox.ShowMessageBox(onConfirmRemove, message, titleLabel, StyledMessageBox.MessageType.YES_NO, "Remove".Localize(), "Cancel".Localize());
});
}

View file

@ -5659,3 +5659,15 @@ Translated:Port number to be used with IP Address to connect to printer over the
English:Reset to Defaults
Translated:Reset to Defaults
English:The serial port to use while connecting to this printer.
Translated:The serial port to use while connecting to this printer.
English:Save Changed
Translated:Save Changed
English:Discard Changes
Translated:Discard Changes
English:Stay Connected
Translated:Stay Connected