myposter.ReturnUrlChange += new vvBMTAutoPost.ReturnUrlChangedEventHandler(MyReturnUrlChangedEvent);
private void MyReturnUrlChangedEvent(object sender, ReturnUrlChangeEventArgs returnurl) { //do whatever you want here... Print ("Change detected "+returnurl); //this prints the returnurl, three values are possible: //"Working" , "Error" and the actual img wrapped url of the uploaded img. }
private vvBMTAutoPost myposter = new vvBMTAutoPost();
myposter.makepost(... and myposter.makeimgpost(...
myposter.ErrorCodeChange += new vvBMTAutoPost.ErrorCodeChangedEventHandler(MyErrorCodeChangedEvent);
private void MyErrorCodeChangedEvent(object sender, ErrorCodeChangeEventArgs error) { //do whatever you want here... Print ("Change detected "+error.ErrorCode);//this prints the change detect and the error code }
myposter.ErrorCodeChange -= new vvBMTAutoPost.ErrorCodeChangedEventHandler(MyErrorCodeChangedEvent);