示例#1
0
        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
 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
 public abstract void Interpret(Contex contex);
示例#5
0
 public override void Interpret(Contex contex)
 {
     throw new NotImplementedException();
 }