public void RemoveWatch(string process)
{
try
{
if (isConnected)
{
//monitorClient.RemoveWatchAsync(process).ContinueWith(t => Update());
monitorClient.RemoveWatch(process);
Update();
}
else
{
monitor.RemoveWatch(process);
Update();
}
}
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
}
}