public IEnumerable<string> GetAllProcesses()
{
IEnumerable<string> result = null;
try
{
if (isConnected)
{
result = monitorClient.GetAllProcesses();
}
else
{
result = monitor.GetAllProcesses();
}
}
catch (TimeoutException te)
{
#if DEBUG
view.ShowError(te.ToString());
#else
view.ShowError(te.Message);
#endif
}
catch (EndpointNotFoundException enfe)
{
#if DEBUG
view.ShowError(enfe.ToString());
#else
view.ShowError(enfe.Message);
#endif
}
return result;
}