Exemplo n.º 1
0
        public void AddItem(TAlternativeParserGrpItemList A, TAlternativeParserGrpItemList B)
        {
            TAlternativeParserGrpItemList  T;
            TAlternativeParserGrpCrossItem Item;

            for (int i = 0; i <= Count - 1; i++)
            {
                Item = GetItems(i);
                for (int j = 0; j <= Item.Count - 1; j++)
                {
                    T = Item.GetItems(j);
                    if ((A == T) || (B == T))
                    {
                        Item.AddItem(A);
                        Item.AddItem(B);
                        return;
                    }
                }
            }
            Item = new TAlternativeParserGrpCrossItem();
            Item.AddItem(A);
            Item.AddItem(B);
            f_List.Add(Item);
        }