Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/generalmimon/contacts
A simple desktop application in C# WPF for contact management
https://github.com/generalmimon/contacts
csharp wpf
Last synced: 10 days ago
JSON representation
A simple desktop application in C# WPF for contact management
- Host: GitHub
- URL: https://github.com/generalmimon/contacts
- Owner: generalmimon
- Created: 2020-06-22T20:11:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-22T20:45:04.000Z (over 4 years ago)
- Last Synced: 2024-11-08T05:42:27.855Z (2 months ago)
- Topics: csharp, wpf
- Language: C#
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Contacts
Contacts is a simple desktop app for Windows written in C# WPF. It can be used for saving contacts on your local drive. It has only the basic funcionality: add, edit and remove a single contact/remove all contacts.
All contacts are stored in a CSV file without header (semicolon delimited). They can be imported and exported in this format. The file is located at `%APPDATA%/Kontakty/kontakty.csv`.
Every line in the CSV file has the following format:
```
First name;Surname;Phone number;E-mail address
```The program uses a custom CSV reader and writer, which can handle even the strings containing the `;` character used to delimit the fields (it wraps the string in double quotes: `"`). The user input can also contain semicolons (`;`) and double quotes (`"`) at the same time. In that case, the string is wrapped in double quotes because of the presence of `;`, and every occurence of `"` is doubled `""` so that the application can distinguish normal quotes and the final quote denoting the end of the field.
For example, a contact with the first name _John_, the surname _D;o"e_, phone number _123 456 789_ and email [email protected]_ will be saved like this:
```
John;"D;o""e";123 456 789;[email protected]
```