The program has a class. It contains the following lines:

if (readingProfileHeader) { // читаем строку вида // 1 1 1 58 0.000000 0.000000 0.000000 114.497520 0.000000 0.000000 2 0.000000 0.000000 pointCount = Convert.ToInt32(parts[3]); Xo = double.Parse(parts[4], CultureInfo.InvariantCulture) * 1000; Xk = double.Parse(parts[7], CultureInfo.InvariantCulture) * 1000; readingProfileHeader = false; readingProfileNumber = true; continue; } 

Further calculations below. There is one BUT. We necessarily multiply by 1000, but there are cases when this is not necessary. Programmatically it does not look, only the user can. I want to use the checkbox so that if it is checked, then transfer, if not, then do not. But in the class you will not refer to the checkbox. Please do not scold if you said stupidity. I study. There are no ideas how to edit the class.

  • Set the property or parameter in the method. What is the problem? - Andrey NOP
  • Why, I do not know how to do this in the classroom. I have enough while on bool b = checkBox1.Checked; if (b == true) {// ...} else - AlexS
  • Well, I wrote to you like: make a property in a class or a parameter in a method. - Andrey NOP
  • Show how you use this class - Andrey NOP
  • Maybe it will be more convenient to look, the full picture will be visible hdd.tomsk.ru/desk/jssiinqg# (there is a file with a class and a call.) - AlexS

0