DeliveryConfirmationsDialog: move to DeliveryConfirmationsWindow
This commit is contained in:
@ -1,13 +1,12 @@
|
||||
<local:ContextWindow x:Class="Elwig.Dialogs.DeliveryConfirmationsDialog"
|
||||
<local:ContextWindow x:Class="Elwig.Dialogs.DeliveryConfirmationsWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:Elwig.Windows"
|
||||
mc:Ignorable="d"
|
||||
ResizeMode="NoResize"
|
||||
Loaded="Window_Loaded"
|
||||
Title="Anlieferungsbestätingungen - Elwig" Height="400" Width="600">
|
||||
Title="Anlieferungsbestätingungen - Elwig" Height="500" Width="800" MinHeight="400" MinWidth="600">
|
||||
<Grid>
|
||||
<GroupBox Header="Sortieren nach" Margin="10,10,10,10" Width="180" Height="80" VerticalAlignment="Top" HorizontalAlignment="Left">
|
||||
<StackPanel Margin="5,5,0,5">
|
@ -10,17 +10,19 @@ using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Elwig.Dialogs {
|
||||
public partial class DeliveryConfirmationsDialog : ContextWindow {
|
||||
public partial class DeliveryConfirmationsWindow : ContextWindow {
|
||||
|
||||
public readonly int Year;
|
||||
|
||||
public DeliveryConfirmationsDialog(int year) {
|
||||
public DeliveryConfirmationsWindow(int year) {
|
||||
InitializeComponent();
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
@ -51,8 +51,8 @@ namespace Elwig.Windows {
|
||||
private void DeliveryConfirmationButton_Click(object sender, RoutedEventArgs evt) {
|
||||
if (SeasonInput.Value is not int year)
|
||||
return;
|
||||
var d = new DeliveryConfirmationsDialog(year);
|
||||
d.Show();
|
||||
var w = new DeliveryConfirmationsWindow(year);
|
||||
w.Show();
|
||||
}
|
||||
|
||||
private async void OverUnderDeliveryButton_Click(object sender, RoutedEventArgs evt) {
|
||||
|
Reference in New Issue
Block a user