From fc6b5e45e0676d5a16128dfe9693dea1207f5953 Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Thu, 22 Oct 2026 17:02:31 +0200 Subject: [PATCH] [chore:] csv header returner --- Tasks/AddressPatch.cs | 81 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/Tasks/AddressPatch.cs b/Tasks/AddressPatch.cs index 07a4786..b5100cd 100644 --- a/Tasks/AddressPatch.cs +++ b/Tasks/AddressPatch.cs @@ -3,6 +3,7 @@ using System.IO; using System.Linq; using System.Reflection; using System.Text; +using Avalonia.Controls; using Logof_Client; public class AddressPatch @@ -134,4 +135,84 @@ public class AddressPatch return "Error while parsing"; } + + public string GetCSVHeader(string sep) + { + string output = ""; + + if(has_refsid){ + output += refsid_is + sep + " "; + } + if(has_anrede){ + output += anrede_is + sep + " "; + } + if(has_titel){ + output += titel_is + sep + " "; + } + if(has_vorname){ + output += vorname_is + sep + " "; + } + if(has_adel){ + output += adel_is + sep + " "; + } + if(has_name){ + output += name_is + sep + " "; + } + if(has_namezus){ + output += namezus_is + sep + " "; + } + if(has_anredzus){ + output += anredzus_is + sep + " "; + } + if(has_strasse){ + output += strasse_is + sep + " "; + } + if(has_strasse2){ + output += strasse2_is + sep + " "; + } + if(has_plz){ + output += plz_is + sep + " "; + } + if(has_ort){ + output += ort_is + sep + " "; + } + if(has_land){ + output += land_is + sep + " "; + } + if(has_pplz){ + output += pplz_is + sep + " "; + } + if(has_postfach){ + output += postfach_is + sep + " "; + } + if(has_name1){ + output += name1_is + sep + " "; + } + if(has_name2){ + output += name2_is + sep + " "; + } + if(has_name3){ + output += name3_is + sep + " "; + } + if(has_name4){ + output += name4_is + sep + " "; + } + if(has_name5){ + output += name5_is + sep + " "; + } + if(has_funktion){ + output += funktion_is + sep + " "; + } + if(has_funktion2){ + output += funktion2_is + sep + " "; + } + if(has_abteilung){ + output += abteilung_is + sep + " "; + } + if(has_funktionad){ + output += funktionad_is + sep + " "; + } + + return output; + } } \ No newline at end of file