public static Boolean LeesCSV() { Boolean result = false; Wie = Properties.Settings.Default.GebruikerInitialen; try { using (var reader = new StreamReader(Properties.Settings.Default.PartijFile)) { // Only read first line if (!reader.EndOfStream) { var line = reader.ReadLine(); var values = line.Split(';'); DossierNummer = values[0]; DossierNaam = values[1]; Partij = new Partij(values[2], values[3], values[4], values[5]); result = true; } } } catch (IOException ex) { if (ex is FileNotFoundException || ex is DirectoryNotFoundException) { result = false; } else { throw; } } return(result); }
public Factuur(string wie, string dossierNummer, string dossierNaam, Partij partij, Decimal totaal) { Wie = wie; DossierNummer = dossierNummer; DossierNaam = dossierNaam; Partij = partij; Totaal = totaal; }