コード例 #1
0
ファイル: Output.cs プロジェクト: xueliu/MSC_Generator
        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();
            }
        }
コード例 #2
0
ファイル: Gfa.cs プロジェクト: sohaibafifi/automata
 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();
 }