示例#1
0
        public MainWindowViewModel(ForecastServiceClient forecastServiceClient)
        {
            _forecastServiceClient = forecastServiceClient;
            _timer.Elapsed        += GeoObjectListBox_Selected;

            AvailableGeoObjects = new ObservableCollection <GeoObjectDto>(_forecastServiceClient.GetAvailableGeoObjects());

            AvailableGeoObjectsLB_SelectionChangedCmd = new DelegateCommand <GeoObjectDto>(
                x => AvailableGeoObjectsLB_SelectionChanged(x)
                );
        }