Esempio n. 1
0
        async Task TryChooseDirectory()
        {
            _uiser.IsVisibleProcessedImageViewer(true);
            _uiser.IsVisibleClassFilter(true);
            // ProcessedImageCollection = new ObservableCollection<AvaloniaUILabeledImage>();
            // ProcessedImageCollection.CollectionChanged += RefreshCollection;
            _workingDir = null;
            _wasImageProcessingTerminated = false;
            _workingDir = await _uiser.ShowOpenDialogAsync();

            _uiser.IsVisibleProgressBar(true);

            if (_workingDir != null)
            {
                ProcessedImageCollection = new ObservableCollection <AvaloniaUILabeledImage>();
                ProcessedImageCollection.CollectionChanged += RefreshCollection;
                _totalAmountOfImagesInDirectory             = CountAmountOfImagesInDirectory();
                ProcessedImagesAmount = 0;

                await StartProcessImagesHttpRequest();
            }
            else
            {
                _uiser.IsVisibleProgressBar(false);
            }
        }