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; }
public Station InsertNewStation () { DataRow NewRow = TablesDataSet.Tables ["Stationen"].NewRow (); NewRow ["ID"] = Guid.NewGuid (); NewRow ["NameID"] = "..."; NewRow ["Title"] = "..."; TablesDataSet.Tables ["Stationen"].Rows.Add (NewRow); Station NewStation = new Station (this, NewRow); Stationen.Add (NewStation); return NewStation; }