private void RefreshStops() { if (_vmStops == null) { _vmStops = new StopsViewModel(_routeName, _flStops, _flStopsPending); StopsListBox.DataContext = _vmStops; StopPanel.DataContext = _vmStops; stopAttributesDataGrid.DataContext = _vmStops; } LookupFieldNames(); if (_stopsRouteNameFieldName == null) return; string where = "1=1"; if (!String.IsNullOrWhiteSpace(_routeName)) where = (_stopsRouteNameFieldName + "='" + _routeName + "'"); _vmStops.Update(_flStops, where); BindSelectedStop(false); }
public Stop(StopsViewModel vmItems) : base(vmItems) { // }