i'm going to write a wpf-application and i think i need some advices. I have a database that provids some records. These records are shown in a ListView. The user can insert, delete or modify records. Each of these operations calls the appropriate method of a class that provids methods to work on my database. If the operation on the database suceeded i fire an event. This event is caught by the ui which displays the changes the user made. If the operation on the database fails, a message is displayed.
The database is observed by a method running in a thread. This method checks once per minute, whether the data have changed in the database (e.g. by other users who also work with these data). If changes are detected, an event is also triggered that contains the changed records.
In the ui-class i'm working with a local data stored in a DataTable.
Is there a better way to build that application than my approach? I think my approach is not as good...