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); }); }
void RemoveApp(ExternalApp app) { ExternalApps.Remove(app); }