Hello all,
I'm working on a small app for my own use (I'm a musician), this is the scenerio:
1. WPF app that scan a specific folder and list all the files (music sheets, .pdf & .xps docs).
2. Store the file name & location in a SQL CE database.
3. I can use the app to edit the tags (song title, artist, key, additional notes, etc...) and store it together with STEP [2].
4. Changes made to folder (new music sheets (files) got added, renamed files, removed files, etc... are to be reflected in the app if it's running or as soon as it's started.
So I was searching around and found out that I can use the FileSystemWatcher to watch for changes in the folder, and thus can update the database with the changes (insert/update/delete on file created/changed/removed for the file location.) However, if the app is not running, I can't use the FileSystemWatcher to make the changes, so I was thinking to use a Windows Service to keep track and store the changes in the database, and the WPF to points to the same DB and get the file information. So my questions:
1. Should I use a Windows Service (WCF?) to do this job? If yes, what do I need to do to interacts between WPF & WCF?
2. I will be using SQL CE since I don't want the users (my band members) to install additional softwares to run it (SQL Express, etc...) How do I make sure that my Windows Service and the WPF points to the same database that got embeded in the WPF app?
3. Any other suggestions?
Thank you very much. I've been mainly working with asp.net and this is pretty much my first WPF app, so please bare with my questions if they are so obvious
Thanks again.
Kenny.
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.