I have the following code that determines if it's the first time the user opens the app. If it is, a file dialog shows, and then it's supposed to change the setting to false, so it doesn't happen after that one time.
public void VerifyIfFirstTimeRun()
{
if (Properties.Settings.Default.FirstTimeUse == true)
{
LocateWoWFolder();
Properties.Settings.Default.FirstTimeUse = false;
}
}
In the last line, I receive the following error:
Error 1 Property or indexer 'CDLauncher.Properties.Settings.FirstTimeUse' cannot be assigned to -- it is read only
How can I do this?