I have registered event handler as follows:
ftpConnection1.LocalDirectoryChanging += new FTPDirectoryEventHandler( before_localDirectoryChange);
this is the function declaration I use:
public void before_localDirectoryChange(object sender, FTPDirectoryEventArgs e)
{
string blah = "blah";
}
The error I get on compilation event is:
error CS0120: An object reference is required for the nonstatic field, method, or property 'pcw101_PcRateProductTopRated_Loader.Class1.before_localDirectoryChange(object, EnterpriseDT.Net.Ftp.FTPDirectoryEventArgs)'
What am I doing wrong? Please help.