public ParametersOperation getParametersOperation(string typeOfMachining) { WindowsFormsApplication8.Interval interval = new WindowsFormsApplication8.Interval(recommendedIntervalRz); ParametersOperation parameters = new ParametersOperation(typeOfMachining, name, surfaceRoughnessRz, interval, idOperation, kvalitet, thicknessOfDefectiveCoating, coefficientOfRefinement); return(parameters); }
public List <ParametersOperation> getListOperationOnSurfaceRoughness(double surfaceRoughness, string nameOperation, string typeOfInstrument) { int indextPrecisionOfMachining = checkSurfaceRoughness(surfaceRoughness); if (indextPrecisionOfMachining == -1) { throw new ErrorMessage($"Шероховатость операции {nameOperation.ToLower()} не входит в пределы"); } List <ParametersOperation> operations = new List <ParametersOperation>(); for (int i = 0; i <= indextPrecisionOfMachining; i++) { ParametersOperation parameters = precisionOfMachining[i].getParametersOperation(nameOperation); parameters.setTypeOfInstrument(typeOfInstrument); operations.Add(parameters); } return(operations); }