DeliveryAdminWindow: Use last scale error as default manual weighing reason

This commit is contained in:
2023-09-13 23:19:04 +02:00
parent 62fe087598
commit 1e9cad6de7
4 changed files with 22 additions and 13 deletions

View File

@ -219,8 +219,8 @@ namespace Elwig.Helpers {
.Sum();
}
public static (int, string?)? ShowManualWeighingDialog() {
var d = new ManualWeighingDialog();
public static (int, string?)? ShowManualWeighingDialog(string? reason = null) {
var d = new ManualWeighingDialog(reason);
return d.ShowDialog() == true ? (d.Weight, d.Reason) : null;
}