Answer the question
In order to leave comments, you need to log in
How to configure Windows phone?
It is necessary to load some settings the first time the program is started (only the first time) it
is planned to load from the network.
How to implement it in a good way? (the method for loading is written)
Answer the question
In order to leave comments, you need to log in
save bool _isFirstRun in application properties. If there is such a property or _isFirstRun == true , the run is first. Naturally, at the first launch, you need to save _isFirstRun == false, so that on subsequent launches the application knows that the launch is not the first
Create, for example, a SettingsService that writes and loads the basic application settings via IsolatedStorage.
As comrade Vyacheslav Zolotov noted, add the IsFirstRun property there, set it to true the first time the application starts. The next time you start, you will already know that the application has started once.
I would add, just in case, another property that will check whether the settings have been loaded or not.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question