I'm using global variable named "client"
For example
client.getPagesCompleted += (s, ee) =>
{
pages = ee.Result;
BuildPages(tvPages.Items, 0);
wait.Close();
};
client.getPagesAsync(cat.MainCategoryID);
I need to clear handlers for getPagesCompleted
and set another handler.
How to easy clear handles?
I know client.getPagesCompleted-=new EventHandler(...)
. But it is very difficult. I need easy way.
I'm using client.getPagesCompleted=null
but error shown. "only use += / -+"