M
M
Michael2015-04-09 13:02:22
WPF
Michael, 2015-04-09 13:02:22

How to implement a reset to the original settings?

There is an application (WPF) which reads settings from *.setting at startup. The user can change and save them.
Question - if you need to restore the settings to the original, then how best to do this? Now I'm thinking in * .setting to make each parameter a read-only duplicate, and when restoring, restore the value of user settings. But maybe there is a better/correct option?
5894d3eaabfc46e7963a55bac0abe7f0.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir S, 2015-04-11
@gmikhail94

if the standard features of the studio were used when creating the settings, then the settings will be stored in 2 places - next to the program, which are read-only, they are also default, and changed, they are stored in the user folder.
to return to the original, you just need to reset the settings and save them. for this, if memory does not change, there is a special method in the Settings class.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question