I have numerous occurrences of the following in my code:
this.webBrowserCtrl.DocumentCompleted -= new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.LoginScreenLoaded);
this.webBrowserCtrl.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.AttemptLoginAnalysis);
I wish to remove this and use a simple method that takes 2 inputs - however I don't know what the types would be.
private void DefineNewDocumentCompletedHandler(TYPEA inputA, TYPEB inputB)
{
this.webBrowserCtrl.DocumentCompleted -= new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(inputA);
this.webBrowserCtrl.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(inputB);
}
Does anyone know what TYPEA and TYPEB should be? Or another way to accomplish my goal?