Пример #1
0
        private async Task <string> OpenFolderDialog()
        {
            var dotaFolder = await _userDialogs.OpenFolderDialog();

            if (string.IsNullOrWhiteSpace(dotaFolder))
            {
                return(string.Empty);
            }

            var directoryInfo = new DirectoryInfo(dotaFolder);

            return(directoryInfo.Name == "dota 2 beta" ? directoryInfo.FullName : string.Empty);
        }