N
nagar
I was thinking about using databinding to display the user settings.
I'm not using the .NET 2.0 ApplicationSettings but I'm using a class
that contains all the settings.
I have a few questions:
1. What's the best practice to store settings? I like using my own
class as I can choose how to serialize and store the data
2. How do I validate the inserted data? Should the validation logic be
handled by the UI or the underlying business logic
3. I don't think I can revert the changes using a business object, so
my idea is to create a copy of the original settings object and
overwrite it if the user confirms the operation.
Thanks a lot.
Andrea
I'm not using the .NET 2.0 ApplicationSettings but I'm using a class
that contains all the settings.
I have a few questions:
1. What's the best practice to store settings? I like using my own
class as I can choose how to serialize and store the data
2. How do I validate the inserted data? Should the validation logic be
handled by the UI or the underlying business logic
3. I don't think I can revert the changes using a business object, so
my idea is to create a copy of the original settings object and
overwrite it if the user confirms the operation.
Thanks a lot.
Andrea