public TAlternativeParserEnlargerTrashItem() { f_ID = 0; f_Length = 0; f_Pos = null; f_Owner = null; }
public void AddItem(TAlternativeParserGrpItemTFS AGrpTfs) { if (f_List.IndexOf(AGrpTfs) < 0) { f_List.Add(AGrpTfs); } }
void DeleteTfsItem(TAlternativeParserGrpItemTFS AGrpTfs) { int inn = f_List.IndexOf(AGrpTfs); if (inn >= 0) { f_List.RemoveAt(inn); } }
public void AddTfs(TTreeListTFS ATFS) { if (FindItemTfs(ATFS) == null) { TAlternativeParserGrpItemTFS T = new TAlternativeParserGrpItemTFS(); T.TFS = ATFS; f_List.Add(T); } }
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; }
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); }
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); }
public int Find(TAlternativeParserGrpItemTFS AGrpTfs) { return(f_List.IndexOf(AGrpTfs)); }
public void AddGRPTfs(TAlternativeParserGrpItemTFS ATFS) { f_List.Add(ATFS); }