Ejemplo n.º 1
0
 public MinimumConnectors(TrainStations.DAL.DbAcess db)
 {
     prim = new Prim(db.stations.ToList());
     InitializeComponent();
     //inititalizing the combobox for user to select a station..
     selectStationComboBox.DisplayMember = "Name";
     selectStationComboBox.ValueMember   = "id";
     selectStationComboBox.DataSource    = db.stations.ToList();
 }
Ejemplo n.º 2
0
 public MinimumConnectors(TrainStations.DAL.DbAcess db)
 {
     prim = new Prim(db.stations.ToList());
     //  insertDummyData(db);
     InitializeComponent();
     selectStationComboBox.DisplayMember = "StationName";
     selectStationComboBox.ValueMember   = "StationsId";
     selectStationComboBox.DataSource    = db.stations.ToList();
 }