Cleanup AbwertenDialog
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
Topmost="True"
|
Topmost="True"
|
||||||
WindowStartupLocation="CenterOwner"
|
WindowStartupLocation="CenterOwner"
|
||||||
FocusManager.FocusedElement="{Binding ElementName=WeightInput}"
|
FocusManager.FocusedElement="{Binding ElementName=WeightInput}"
|
||||||
Title="Abwerten" Height="190" Width="400">
|
Title="Teillieferung abwerten" Height="190" Width="400">
|
||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<Style TargetType="Label">
|
<Style TargetType="Label">
|
||||||
<Setter Property="HorizontalAlignment" Value="Left"/>
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||||
@ -39,8 +39,11 @@
|
|||||||
<ColumnDefinition/>
|
<ColumnDefinition/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<TextBlock x:Name="Text" Margin="10,10,10,10" Grid.ColumnSpan="2" TextWrapping="Wrap" TextAlignment="Center"
|
<TextBlock Margin="10,10,10,10" Grid.ColumnSpan="2" TextWrapping="Wrap" TextAlignment="Center">
|
||||||
Text="Welche Menge der Lieferung soll abgewertet werden?"/>
|
Welche Menge der Teillieferung <Run x:Name="TextLsNr" FontWeight="Bold" Text="20201010A000/1"/><LineBreak/>
|
||||||
|
von <Run x:Name="TextMember" FontWeight="Bold" Text="Max Mustermann"/><LineBreak/>
|
||||||
|
mit <Run x:Name="TextWeight" FontWeight="Bold" Text="1 000 kg"/> soll abgewertet werden?
|
||||||
|
</TextBlock>
|
||||||
|
|
||||||
<Label Content="Gewicht:" Margin="10,70,10,10"/>
|
<Label Content="Gewicht:" Margin="10,70,10,10"/>
|
||||||
<Grid Grid.Column="1" Width="70" Height="25" Margin="0,70,10,10" HorizontalAlignment="Left" VerticalAlignment="Top">
|
<Grid Grid.Column="1" Width="70" Height="25" Margin="0,70,10,10" HorizontalAlignment="Left" VerticalAlignment="Top">
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
using Elwig.Helpers;
|
using Elwig.Helpers;
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Documents;
|
|
||||||
|
|
||||||
namespace Elwig.Dialogs {
|
namespace Elwig.Dialogs {
|
||||||
public partial class AbwertenDialog : Window {
|
public partial class AbwertenDialog : Window {
|
||||||
@ -12,14 +10,9 @@ namespace Elwig.Dialogs {
|
|||||||
public AbwertenDialog(string lsnr, string name, int weight) {
|
public AbwertenDialog(string lsnr, string name, int weight) {
|
||||||
Weight = weight;
|
Weight = weight;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Text.Inlines.Clear();
|
TextLsNr.Text = lsnr;
|
||||||
Text.Inlines.Add("Welche Menge der Teillieferung ");
|
TextMember.Text = name;
|
||||||
Text.Inlines.Add(new Run(lsnr) { FontWeight = FontWeights.Bold });
|
TextWeight.Text = $"{weight:N0}\u202fkg";
|
||||||
Text.Inlines.Add("\nvon ");
|
|
||||||
Text.Inlines.Add(new Run(name) { FontWeight = FontWeights.Bold });
|
|
||||||
Text.Inlines.Add("\nmit ");
|
|
||||||
Text.Inlines.Add(new Run($"{weight:N0}\u202fkg") { FontWeight = FontWeights.Bold });
|
|
||||||
Text.Inlines.Add(" soll abgewertet werden?");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ConfirmButton_Click(object sender, RoutedEventArgs evt) {
|
private void ConfirmButton_Click(object sender, RoutedEventArgs evt) {
|
||||||
|
Reference in New Issue
Block a user