[chore:] too much to documentate xD but changes like better AddressCheck, Progress Window, Result Window, etc.
This commit is contained in:
11
ResultWindow.axaml
Normal file
11
ResultWindow.axaml
Normal file
@@ -0,0 +1,11 @@
|
||||
<Window xmlns="https://github.com/avaloniaui"
|
||||
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"
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
x:Class="Logof_Client.ResultWindow"
|
||||
Title="Ergebnis">
|
||||
<Grid>
|
||||
<DataGrid x:Name="DgResult" AutoGenerateColumns="True" />
|
||||
</Grid>
|
||||
</Window>
|
||||
20
ResultWindow.axaml.cs
Normal file
20
ResultWindow.axaml.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace Logof_Client;
|
||||
|
||||
public partial class ResultWindow : Window
|
||||
{
|
||||
public ResultWindow(List<(int, List<AddressCheck.ErrorTypes>)> result)
|
||||
{
|
||||
InitializeComponent();
|
||||
GenerateView(result);
|
||||
}
|
||||
|
||||
private void GenerateView(List<(int, List<AddressCheck.ErrorTypes>)> result)
|
||||
{
|
||||
var errors = new List<KasPersonError>();
|
||||
foreach (var single_result in result) errors.Add(new KasPersonError(single_result));
|
||||
DgResult.ItemsSource = errors;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user