//loop throgh each field private void LoopOnFields(IType[] types) { foreach (IType type in types) { //Field could be composite or primitive IComposite compositeItem = type as IComposite; if (compositeItem != null) { LoopOnFields((IType[])compositeItem.Components); } //Here we can find structural issues. if (type.ExtraComponents.numComponents() > 0) { CSegment _cseg = segments.Where(cseg => cseg.Name.Equals(currentSegment)).First <CSegment>(); errorCollection.Add(string.Format("{0}^{1}^{2}^102&Data type error&HL7nnnn", currentSegment, _cseg.Sequence, fieldNumber)); } } }
public void Unload() { this.useLoop = false; this.Midi = ""; this.times = -1; if (this.CAPathPerformance != null) { this.CAPathPerformance.StopAll(); } this.CSegment1.ReleaseSegment(); this.CSegment1.UnloadAllPerformances(); this.CSegment1.Dispose(); this.CLoader.Dispose(); this.COutPort.ReleasePort(); this.CSegment1 = (CSegment)null; this.CLoader = (CDLSLoader)null; this.CSegment1 = new CSegment(); this.CLoader = new CDLSLoader(); this.CLoader.Initialize(); this.UseDLS = false; }
public override AShape CreateShape(string code) { AShape ans = null; if (code == "C") { ans = new CCircle(); } if (code == "S") { ans = new CSegment(); } if (code == "P") { ans = new Polygon(); } if (code == "G") { ans = new CGroup(); } return(ans); }
private static bool CheckSeg_Ray(CSegment col1, CRay col2, Transform2D trans1, Transform2D trans2) { return(false); }
private static bool CheckSeg_Polygon(CSegment col1, CPolygon col2, Transform2D trans1, Transform2D trans2) { return(false); }
private static bool CheckSeg_AABB(CSegment col1, CAABB col2, Transform2D trans1, Transform2D trans2) { return(false); }
private static bool CheckSeg_Circle(CSegment col1, CCircle col2, Transform2D trans1, Transform2D trans2) { return(false); }