コード例 #1
0
ファイル: Program.cs プロジェクト: step1985/TestGit
        static void Main(string[] args)
        {
            Contex  contex  = new Contex();
            Country country = new Country("English");

            country.Interpret(contex);
            country.Operation();
            Console.ReadLine();
        }
コード例 #2
0
ファイル: Event.cs プロジェクト: step1985/TestGit
 public override void Interpret(Contex contex)
 {
     if (contex.PositionCollum == 5)
     {
         contex.PositionCollum = 0;
         return;
     }
     if (contex.PositionCollum < contex.CollumCount - 1)
     {
         Totall totall = new Totall(contex.nodes[contex.PositionRow, contex.PositionCollum + 1]);
         this.Add(totall);
         contex.PositionCollum++;
         this.Interpret(contex);
     }
 }
コード例 #3
0
ファイル: Composite.cs プロジェクト: step1985/TestGit
 public override void Interpret(Contex contex)
 {
     if (contex.PositionRow == 5)
     {
         contex.PositionRow = 0;
         return;
     }
     if (contex.PositionRow < contex.RowCount)
     {
         Event ev = new Event(contex.nodes[contex.PositionRow, 0]);
         this.Add(ev);
         ev.Interpret(contex);
         contex.PositionRow++;
         this.Interpret(contex);
     }
 }
コード例 #4
0
ファイル: Component.cs プロジェクト: step1985/TestGit
 public abstract void Interpret(Contex contex);
コード例 #5
0
 public override void Interpret(Contex contex)
 {
     throw new NotImplementedException();
 }