diff --git a/Elwig/Windows/DeliveryConfirmationsWindow.xaml b/Elwig/Windows/DeliveryConfirmationsWindow.xaml
index 2faf564..be99264 100644
--- a/Elwig/Windows/DeliveryConfirmationsWindow.xaml
+++ b/Elwig/Windows/DeliveryConfirmationsWindow.xaml
@@ -23,11 +23,8 @@
-
-
diff --git a/Elwig/Windows/DeliveryConfirmationsWindow.xaml.cs b/Elwig/Windows/DeliveryConfirmationsWindow.xaml.cs
index 992bba3..7ffec00 100644
--- a/Elwig/Windows/DeliveryConfirmationsWindow.xaml.cs
+++ b/Elwig/Windows/DeliveryConfirmationsWindow.xaml.cs
@@ -20,15 +20,9 @@ namespace Elwig.Dialogs {
Year = year;
Title = $"Anlieferungsbestätigungen - Lese {Year} - Elwig";
TextElement.Text = App.Client.TextDeliveryConfirmation;
- if (!App.Config.Debug) {
- TestButton.Visibility = Visibility.Hidden;
- var m = ProgressBar.Margin;
- ProgressBar.Margin = new(m.Left, m.Top, m.Right, m.Bottom - 32);
- }
}
private void Window_Loaded(object sender, RoutedEventArgs evt) {
- TestButton.IsEnabled = App.IsPrintingReady;
ShowButton.IsEnabled = App.IsPrintingReady;
PrintButton.IsEnabled = App.IsPrintingReady;
}
@@ -80,11 +74,6 @@ namespace Elwig.Dialogs {
}
IEnumerable list = await members.ToListAsync();
- if (mode == 0) {
- var r = new Random().Next(0, 10);
- list = list.Where((_, n) => n % 10 == r);
- }
-
var data = await DeliveryConfirmationData.ForSeason(Context.DeliveryParts, Year);
using var doc = Document.Merge(list.Select(m =>
new DeliveryConfirmation(Context, Year, m, data[m.MgNr]) {
@@ -109,10 +98,6 @@ namespace Elwig.Dialogs {
Close();
}
- private async void TestButton_Click(object sender, RoutedEventArgs evt) {
- await Generate(0);
- }
-
private async void ShowButton_Click(object sender, RoutedEventArgs evt) {
await Generate(1);
}