public void CreateEditorEntriesForDiagrams(ArrayList[] editorContentDiagrams) { int editorContentDiagramsCount = editorContentDiagrams.GetLength(0); // TODO: Check is there some unsave work ? this.rtbMscEditor.Clear(); ArrayList editorContentCurrentDiagram; for (int index = 0; index < editorContentDiagramsCount; index++) { editorContentCurrentDiagram = (ArrayList)editorContentDiagrams[index]; IEnumerator itrEditorContentCurrentDiagram = editorContentCurrentDiagram.GetEnumerator(); string currentEditorRow; while (itrEditorContentCurrentDiagram.MoveNext()) { currentEditorRow = (string)itrEditorContentCurrentDiagram.Current; this.rtbMscEditor.AppendText(currentEditorRow); } this.editor.checkSyntaxAll(); } }
public override void InitI(ArrayList[,] I) { this.I = new ArrayList[this.S, this.Read.Count]; for (int i = 0; i < this.S; i++) for (int j = 0; j < this.Read.Count; j++) if (i < I.GetLength(0)) this.I[i, j] = new ArrayList(I[i, j]); else this.I[i, j] = new ArrayList(); }