Add PaymentChartWindow

This commit is contained in:
2023-09-04 00:52:18 +02:00
parent 545622a2ab
commit 6f4e3474b8
13 changed files with 1236 additions and 2 deletions

View File

@ -42,6 +42,7 @@ namespace Elwig.Helpers {
public DbSet<DeliveryPart> DeliveryParts { get; private set; }
public DbSet<DeliveryPartAttr> DeliveryPartAttributes { get; private set; }
public DbSet<DeliveryPartModifier> DeliveryPartModifiers { get; private set; }
public DbSet<PaymentVar> PaymentVariants { get; private set; }
private readonly StreamWriter? LogFile = null;
public static DateTime LastWriteTime => File.GetLastWriteTime(App.Config.DatabaseFile);

View File

@ -223,6 +223,11 @@ namespace Elwig.Helpers {
return d.ShowDialog() == true ? d.Weight : null;
}
public static double? ShowLinearPriceIncreaseDialog() {
var d = new LinearPriceIncreaseDialog();
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;