For some reason, when setting variables through Properties.Settings.Default , all other variables in Settings are reset to 0 (All parameters of type int ). Set values ​​like code.
Properties.Settings.Default.Slow_pc = X; Properties.Settings.Default.Save(); That is, the button has to write certain variables for subsequent writing to the file, but if the parameters are not used by the button, then they reset the value. Perhaps the mistake is stupid.
UPD
For example, there are variables
Properties.Settings.Default.var1 = 1 Properties.Settings.Default.var2 = 2 Properties.Settings.Default.var3 = 3 And there is a button that sets the variable var1 code and write all the variables in the file
private void button1(object sender, RoutedEventArgs e) { Properties.Settings.Default.var1 = 4; Properties.Settings.Default.Save(); string FileText = Properties.Settings.Default.var1 + "/" + Properties.Settings.Default.var2 +"/"+ Properties.Settings.Default.var3; File.WriteAllText(C:/.../File.txt, FileText); } As a result, a text file will be displayed.
4/0/0 but not
4/2/3 as was expected.
Properties.Settings.Default.Save();Settings.Properties.Settings.Default.Save();otherwise they will not be written to the file. Give the full code (if a lot of code, create a new project and transfer all related parameters). - koshe