/// <summary> /// Подготовка к чтению IO. /// </summary> private void PrepareForReading() { var project = ApiHelper.GetProject(); var objectsFinder = new DMObjectsFinder(project); var functionsFilter = new FunctionsFilter(); var properties = new FunctionPropertyList(); properties.FUNC_MAINFUNCTION = true; functionsFilter.SetFilteredPropertyList(properties); functionsFilter.Category = Function.Enums.Category.PLCBox; functionsForSearching = objectsFinder.GetFunctions(functionsFilter) .ToList(); functionsForSearching.Sort(CompareFunctions); IOManager.Clear(); isContainsNodes = false; isContainsA1 = CheckA1(); }