public MainWindow()
        {
            InitializeComponent();

            BtnSelectAll.Visibility = Visibility.Hidden;
            BtnSelectAll.IsChecked  = false;

            _datasetService = new DatasetService();

            try
            {
                LbDatasets.ItemsSource = _datasetService.GetDatasets();
            }
            catch (Exception)
            {
                MessageBox.Show("Klarer ikke hente datasett... Sjekk internett tilkoblingen din");
            }

            try
            {
                _projections = _datasetService.FetchProjections();
            }
            catch (Exception e)
            {
                _projections = _datasetService.ReadFromProjectionFile();
            }
            var viewDatasets = (CollectionView)CollectionViewSource.GetDefaultView(LbDatasets.ItemsSource);

            if (viewDatasets != null)
            {
                viewDatasets.Filter = UserDatasetFilter;
            }

            _selectedFiles = _datasetService.GetSelectedFilesAsViewModel(_projections);
            LbSelectedFiles.ItemsSource = _selectedFiles;

            _selectedDatasetFiles = new List <DatasetFileViewModel>();
        }