/// <summary> /// Loads the file and builds the SFC diagram /// </summary> private void InitialiseDiagram(ILessonEntity openedLesson) { _sfc2dEditorNode = GetNode <Sfc2dEditorNode>("HscRelative/Sfc2dViewer/Sfc2dEditor"); _sfc2dEditorNode.InitializeEditor(_processingData, false); string filepath = openedLesson.TemporaryDiagramFilePath; bool success = _sfc2dEditorNode.TryLoadDiagram(filepath); if (!success) { GetNode <Label>(_errorLabelPath).Text = "No file access permission in the lesson folder."; GetNode <Label>(_errorLabelPath).Visible = true; } }
public BreakpointManager(Master master, Sfc2dEditorNode _sfc2dEditorNode) { CheckSet = new HashSet <int>(); _master = master; IReadOnlyDictionary <int, SfcPatchControl> map = _sfc2dEditorNode.Sfc2dEditorControl.ControlMap; foreach (var entity in map) { if (entity.Value.Data.ContainsRealStep()) { BreakpointOverlayButton.CreateAndSetup(entity.Key, entity.Value.SfcPatchNode, this); } } }