private List <Module> TryToGetModules() { try { int processId = TaskListManager.GetSelected().ProcessId; return(ModuleListLoader.GetModuleList(processId)); } catch (Exception e) { MessageBox.Show(e.Message); StopBackgroundTask(); } return(new List <Module>()); }
private static List <ThreadInfo> TryToGetThreads() { Task selected = TaskListManager.GetSelected(); int id = selected.ProcessId; try { return(ThreadListLoader.GetThreadsInfos(id)); } catch (Exception e) { MessageBox.Show(e.Message); } return(new List <ThreadInfo>()); }