/// <summary>
        /// Loads data from a SAFE Sentinel 1 directory or archive asynchronously
        /// </summary>
        /// <param name="path">Path to the directory or the archive</param>
        /// <returns>The parsed SAR-C data</returns>
        public static async Task <S1Data> OpenSentinel1DataSetAsync(string path)
        {
            SafeDirectoryHelper.EnsureS1SAFEDirectory(path);

            var data = ManifestParser.Parse(path);

            return(data);
        }
        private void SelectFolder()
        {
            var result = this._messageManager.ShowSelectFolderDialog();

            if (result.result.GetValueOrDefault() == false)
            {
                return;
            }

            this.SelectedFolderPath = result.result.GetValueOrDefault() ? result.selectedPath : string.Empty;

            try
            {
                SafeDirectoryHelper.EnsureS1SAFEDirectory(this.SelectedFolderPath);
                this.IsValidFolder = true;
            }
            catch (Exception e)
            {
                this.SelectedFolderErrorMessage = e.Message;
                this.IsValidFolder = false;
            }
        }