예제 #1
0
        async Task AddApp()
        {
            var selectedFile = await _dialogManager.BrowseForFile(null, null, ".exe", true);

            if (selectedFile == null)
            {
                return;
            }

            await Task.Run(() => {
                var newApp = new ExternalApp(Path.GetFileNameWithoutExtension(selectedFile), selectedFile, "", false,
                                             StartupType.Any);
                ExternalApps.AddLocked(newApp);
            });
        }