private void Omegle_UnhandledResponse(object sender, UnhandledResponseEventArgs e) { DisplayMessage(String.Format("Unhandled response: {0}!", e.Response)); RemoteUser user = sender as RemoteUser; if (!user.Omegle.IsConnected || e.Response.Contains("error")) { RemoveUser(user); } }
void Omegle_UnhandledResponse(object sender, UnhandledResponseEventArgs e) { if (this.UnhandledResponse != null) this.UnhandledResponse(this, e); }