Cleanup AbwertenDialog

This commit is contained in:
2023-08-28 17:36:51 +02:00
parent 973f49fabc
commit ff7fe34d5b
2 changed files with 9 additions and 13 deletions

View File

@ -1,8 +1,6 @@
using Elwig.Helpers;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
namespace Elwig.Dialogs {
public partial class AbwertenDialog : Window {
@ -12,14 +10,9 @@ namespace Elwig.Dialogs {
public AbwertenDialog(string lsnr, string name, int weight) {
Weight = weight;
InitializeComponent();
Text.Inlines.Clear();
Text.Inlines.Add("Welche Menge der Teillieferung ");
Text.Inlines.Add(new Run(lsnr) { FontWeight = FontWeights.Bold });
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?");
TextLsNr.Text = lsnr;
TextMember.Text = name;
TextWeight.Text = $"{weight:N0}\u202fkg";
}
private void ConfirmButton_Click(object sender, RoutedEventArgs evt) {