diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index 659166b..1729e27 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -1,3 +1,4 @@ +using System; using Avalonia.Controls; using Avalonia.Interactivity; @@ -8,30 +9,48 @@ public partial class MainWindow : Window public MainWindow() { InitializeComponent(); + try + { + var temppath = "kaspersons.csv"; + var result = DataImport.ImportKasAddressList(temppath); + if (result.Item1) + { + var check_result = AddressCheck.Perform(result.Item2); + foreach (var item in check_result) + { + Console.WriteLine(); + Console.Write(item.Item1 + " "); + foreach (var error in item.Item2) Console.Write(error + ", "); + } + } + } + catch + { + } } private void MnuExit_OnClick(object? sender, RoutedEventArgs e) { - throw new System.NotImplementedException(); + throw new NotImplementedException(); } private void MnuAbout_OnClick(object? sender, RoutedEventArgs e) { - throw new System.NotImplementedException(); + throw new NotImplementedException(); } private void MnuSettings_OnClick(object? sender, RoutedEventArgs e) { - throw new System.NotImplementedException(); + throw new NotImplementedException(); } private void MnuHelp_OnClick(object? sender, RoutedEventArgs e) { - throw new System.NotImplementedException(); + throw new NotImplementedException(); } private void MnuGithub_OnClick(object? sender, RoutedEventArgs e) { - throw new System.NotImplementedException(); + throw new NotImplementedException(); } } \ No newline at end of file