Leichte Anpassungen / Einlesen funktioniert jetzt über den Pfad

This commit is contained in:
2024-08-26 22:24:50 +02:00
parent 26c62d000d
commit ebcc615de4
12 changed files with 214 additions and 197 deletions

View File

@@ -1,6 +1,6 @@
using Projekt_Calcan_Conze.DTOs;
namespace Projekt_Calcan_Conze.DTOs;
namespace Projekt_Calcan_Conze.DTOs;
using Projekt_Calcan_Conze.DTOs;
internal class CustomerDto
{

View File

@@ -1,7 +1,7 @@
using Projekt_Calcan_Conze.Models;
using System.Text;
namespace Projekt_Calcan_Conze.Models;
namespace Projekt_Calcan_Conze.Models;
using Projekt_Calcan_Conze.Models;
using System.Text;
internal class Customer
{

View File

@@ -3,12 +3,23 @@ using Projekt_Calcan_Conze.Models;
string? filePath = null;
while (filePath is null)
while (string.IsNullOrEmpty(filePath))
{
Console.WriteLine("Bitte gib einen Dateipfad an:");
filePath = Console.ReadLine();
}
if (filePath.StartsWith('\"'))
{
filePath = filePath.Substring(startIndex: 1, length: filePath.Length - 1);
}
if (filePath.EndsWith('\"'))
{
filePath = filePath.Substring(startIndex: 0, length: filePath.Length - 1);
}
string? customerId = null;
while (customerId is null)

View File

@@ -1,11 +1,11 @@
using System.Net.Mail;
namespace Projekt_Calcan_Conze;
using System.Net.Mail;
using Projekt_Calcan_Conze.DTOs;
using Projekt_Calcan_Conze.Models;
using Microsoft.VisualBasic;
namespace Projekt_Calcan_Conze;
internal static class Import
{
public static (List<Customer> Customers, List<string> Protocol) For(string filePath)

View File

@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Projekt_Calcan_Conze")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9f2e9cbec8646502e9f8d8e82a8d93ceb2077c93")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+26c62d000d0e4ffd1f3c6baf8a522f5b891e50dc")]
[assembly: System.Reflection.AssemblyProductAttribute("Projekt_Calcan_Conze")]
[assembly: System.Reflection.AssemblyTitleAttribute("Projekt_Calcan_Conze")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
b7a6e87d6dec130dcc98889acb8324098d6ecce8b407916d22fbac7ae0858d76
ca49067a20f82534e6f4dc92655af77866e882ae8f80b03ea3f9bd23828f8614