public static ParametersOfSurface extractionOfParametersOfPartFromTextBoxes(MainForm form)
        {
            double lengthOfPart = StringConvertToDoubleOrZero(form.LengthOfPart.Text);

            Part.setLenghtOfPart(lengthOfPart);

            double diameterOfPart = StringConvertToDoubleOrZero(form.DiameterOfPart.Text);

            TypeOfPart typeOfPart             = createType(form.TypeOfPart);
            TypeOfPart typeOfAllowance        = createType(form.TypeOfAllowance);
            TypeOfPart typeOfProcessedSurface = createType(form.TypeOfProcessedSurface);

            double surfaceRoughness = StringConvertToDoubleOrZero(form.SurfaceRoughness.Text);

            double allowance = StringConvertToDoubleOrZero(form.Allowance.Text);
            double holeDepth = StringConvertToDoubleOrZero(form.HoleDepth.Text);


            ParametersOfSurface parameters = new ParametersOfSurface(diameterOfPart, typeOfPart, typeOfAllowance, typeOfProcessedSurface, surfaceRoughness, allowance, holeDepth);

            parameters.setLengthOfPart(lengthOfPart);
            return(parameters);
        }