Example #1
0
		private void InsertDisplayableNightLine (DisplayableStation ParentStation, Linie Lin)
			{
			DisplayableNightLine NewDisplayableNightLine = new DisplayableNightLine()
				{
				Parent = ParentStation,
				NameID = Lin.NameID,
				Richtung = Lin.Richtung
				};
			ParentStation.DisplayableLinien.Add (NewDisplayableNightLine);
			}
		public void DeleteLine (Linie LinieToDelete)
			{
			LinieToDelete.BasisRow.Delete ();
			LinieToDelete.Parent.Linien.Remove(LinieToDelete);
			Linien.Remove(LinieToDelete);
			GetStation(LinieToDelete.StationID).Linien.Remove(LinieToDelete);
			LinieToDelete.Parent.SendPropertyChanged("Linien");
			}
Example #3
0
		private void InsertDisplayableBus (DisplayableStation ParentStation, Linie Lin)
			{
			DisplayableBus NewDisplayableBus = new DisplayableBus()
				{
				Parent = ParentStation,
				NameID = Lin.NameID,
				Richtung = Lin.Richtung
				};
			ParentStation.DisplayableLinien.Add (NewDisplayableBus);
			}
		public Linie InsertNewLine(Station ParentStation)
			{
			DataRow NewRow = TablesDataSet.Tables["Linien"].NewRow();
			NewRow["ID"] = Guid.NewGuid();
			NewRow["NameID"] = "Linie...";
			NewRow["NameID"] = "Richtung...";
			NewRow["SortOrder"] = "010";
			NewRow ["StationID"] = ParentStation.ID;
			NewRow["LineType"] = "ptBusCity";
			TablesDataSet.Tables["Linien"].Rows.Add(NewRow);
			Linie NewLinie = new Linie (this, NewRow);
			Linien.Add(NewLinie);
			ParentStation.Linien.Add(NewLinie);
			return NewLinie;
			}