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