This section looks like a traditional event being fired.
if (OnLoginFailed != null)
{
EventArgs newArgs = new EventArgs();
OnLoginFailed(this, newArgs);
}
Somewhere else in your code might be the declaration of the event, it might look like this:
public event EventHandler OnLoginFailed;
Somewhere else (maybe elsewhere in the project/solution), there will probably be a method to handle this event (subscribe to it), and a wire-up to subscribe the method to the event... Maybe something like this:
handling method:
private void LockUser(object sender, EventArgs e)
{
}
subscription/wireup
someObject.OnLoginFailed += new EventHandler(LockUser);
The code you have posted doesn't lock the user - it raises an event to tell something else to lock the user. Your task is to find that subscribing method (if it's within your codebase!) and make appropriate modifications there. Good luck!
Also take a look at:
msdn article on C# events