diff --git a/ResultWindow.axaml b/ResultWindow.axaml new file mode 100644 index 0000000..4201973 --- /dev/null +++ b/ResultWindow.axaml @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/ResultWindow.axaml.cs b/ResultWindow.axaml.cs new file mode 100644 index 0000000..d2c5baf --- /dev/null +++ b/ResultWindow.axaml.cs @@ -0,0 +1,20 @@ +using System.Collections.Generic; +using Avalonia.Controls; + +namespace Logof_Client; + +public partial class ResultWindow : Window +{ + public ResultWindow(List<(int, List)> result) + { + InitializeComponent(); + GenerateView(result); + } + + private void GenerateView(List<(int, List)> result) + { + var errors = new List(); + foreach (var single_result in result) errors.Add(new KasPersonError(single_result)); + DgResult.ItemsSource = errors; + } +} \ No newline at end of file