public Haltestelle(AnlagenElemente parent, Int32 zoom, AnzeigeTyp anzeigeTyp, string[] elem) : base(parent, Convert.ToInt32(elem[1]), zoom, anzeigeTyp) { infoFenster = parent.InfoElemente.Element(Convert.ToInt32(elem[2])); text = "HS " + ID; infoFenster.Text = text; Parent.HaltestellenElemente.Hinzufügen(this); }
public bool GleisElementAnschluss(InfoFenster infoFenster) { if (this.InfoFelder != null) { if (PunktAufGleis(infoFenster.Position)) { if (RasterPositionFrei(infoFenster)) { int glPos = RasterLengthFromStartkn(infoFenster.PositionRaster); if (((glPos * this.Zoom) > 0) && ((glPos * this.Zoom) < _length)) { this.InfoFelder.Add(infoFenster); infoFenster.Gleisposition = glPos; return(true); } } } } return(false); }
public bool GleisElementAustragen(InfoFenster infoFenster) { return(this.InfoFelder.Remove(infoFenster)); }
private void infoFensterLaden(int Nummer) { _infoFenster = this.Parent.InfoElemente.Element(Nummer); }