Пример #1
0
        async Task AddApp() {
            var selectedFile = await _dialogManager.BrowseForFileAsync(null, ".exe", true);
            if (selectedFile == null)
                return;

            await Task.Run(() => {
                var newApp = new ExternalApp(Path.GetFileNameWithoutExtension(selectedFile), selectedFile, "", false,
                    StartupType.Any);
                ExternalApps.Add(newApp);
            });
        }
Пример #2
0
 void RemoveApp(ExternalApp app) {
     ExternalApps.Remove(app);
 }