コード例 #1
0
 public TAlternativeParserEnlargerTrashItem()
 {
     f_ID     = 0;
     f_Length = 0;
     f_Pos    = null;
     f_Owner  = null;
 }
コード例 #2
0
 public void AddItem(TAlternativeParserGrpItemTFS AGrpTfs)
 {
     if (f_List.IndexOf(AGrpTfs) < 0)
     {
         f_List.Add(AGrpTfs);
     }
 }
コード例 #3
0
        void DeleteTfsItem(TAlternativeParserGrpItemTFS AGrpTfs)
        {
            int inn = f_List.IndexOf(AGrpTfs);

            if (inn >= 0)
            {
                f_List.RemoveAt(inn);
            }
        }
コード例 #4
0
 public void AddTfs(TTreeListTFS ATFS)
 {
     if (FindItemTfs(ATFS) == null)
     {
         TAlternativeParserGrpItemTFS T = new TAlternativeParserGrpItemTFS();
         T.TFS = ATFS;
         f_List.Add(T);
     }
 }
コード例 #5
0
        void CreateTrashItem(TAlternativeParserGrpItemTFS APos, int ALength,
                             TAlternativeParserEnlargerItem AOwner, int AID)
        {
            TAlternativeParserEnlargerTrashItem Item = f_Trash.NewTrashItem();

            Item.Pos    = APos;
            Item.Length = ALength;
            Item.Owner  = AOwner;
            Item.ID     = AID;
        }
コード例 #6
0
        public static int APC_CompareNode(object A, object B)
        {
            TAlternativeParserGrpItemTFS m_A = (TAlternativeParserGrpItemTFS)(A);
            TAlternativeParserGrpItemTFS m_B = (TAlternativeParserGrpItemTFS)(B);
            int res = -100; /*** GMess.SendMess(3, int(m_A.TFS.BaseWorkShape), int(m_B.TFS.BaseWorkShape));*/ //НУКЖНО ДЕБАЖИТЬ ИСХОДНИКИ

            if (res == -100)
            {
                MessageBox.Show("Исключителная ошибка в алгоритме программы. Обратитесь к разработчику", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            return(res);
        }
コード例 #7
0
        public TAlternativeParserGrpCrossItemEnlarge FindEnlarge(TAlternativeParserGrpItemTFS ATfs)
        {
            TAlternativeParserGrpItemBase         Base;
            TAlternativeParserGrpCrossItemOut     Outs;
            TAlternativeParserGrpCrossItemEnlarge Enl;

            for (int i = 0; i <= CountBasis - 1; i++)
            {
                Base = GetItemsBasis(i);
                if (Base.Who() == 3)
                {
                    Enl = (TAlternativeParserGrpCrossItemEnlarge)(Base);
                    if (Enl.Pos == ATfs)
                    {
                        return(Enl);
                    }
                }
            }

            for (int i = 0; i <= CountOut - 1; i++)
            {
                Outs = GetItemsOut(i);
                for (int j = 0; j <= Outs.Count - 1; j++)
                {
                    Base = Outs.GetItems(j);
                    if (Base.Who() == 3)
                    {
                        Enl = (TAlternativeParserGrpCrossItemEnlarge)(Base);
                        if (Enl.Pos == ATfs)
                        {
                            return(Enl);
                        }
                    }
                }
            }
            return(null);
        }
コード例 #8
0
 public int Find(TAlternativeParserGrpItemTFS AGrpTfs)
 {
     return(f_List.IndexOf(AGrpTfs));
 }
コード例 #9
0
 public void AddGRPTfs(TAlternativeParserGrpItemTFS ATFS)
 {
     f_List.Add(ATFS);
 }