Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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]
```