DeliveryAdminWindow: Add DeliverySplittingDialog
All checks were successful
Test / Run tests (push) Successful in 2m10s

This commit is contained in:
2024-09-28 19:54:50 +02:00
parent f29a609d3b
commit c62947dacd
12 changed files with 530 additions and 447 deletions

View File

@ -267,9 +267,9 @@ namespace Elwig.Helpers {
return d.ShowDialog() == true ? (d.Weight, d.Reason) : null;
}
public static int? ShowAbwertenDialog(string lsnr, string name, int weight) {
var d = new AbwertenDialog(lsnr, name, weight);
return d.ShowDialog() == true ? d.Weight : null;
public static (string?, int[])? ShowDeliverySplittingDialog(Delivery delivery) {
var d = new DeliverySplittingDialog(delivery);
return d.ShowDialog() == true ? (d.MgNr?.ToString() ?? d.LsNr, d.Weights ?? []) : null;
}
public static double? ShowLinearPriceIncreaseDialog() {
@ -277,11 +277,6 @@ namespace Elwig.Helpers {
return d.ShowDialog() == true ? d.Price : null;
}
public static string? ShowDeliveryExtractionDialog(string lsnr, string name, bool single, IEnumerable<string> lsnrs) {
var d = new DeliveryExtractionDialog(lsnr, name, single, lsnrs);
return d.ShowDialog() == true ? d.AddTo : null;
}
public static Footer GenerateFooter(string lineBreak, string seperator) {
return new Footer(lineBreak, seperator);
}