private void OnError(object sender, ErrorEventArgs e) { Logger.ErrorFormat(this, "Error from {0}: {1}", sender, e.Message); if (e.Fatal) { Disconnect(); } }
void Errors_OnError(object sender, ErrorEventArgs e) { MessageBox.Show(e.Message, "Protocol Error", MessageBoxButtons.OK, MessageBoxIcon.Error); }
private void OnError(object sender, ErrorEventArgs e) { Logger.ErrorFormat(this, "Error from {0}: {1}", sender, e.Message); }
private static void Errors_OnError(object sender, ErrorEventArgs e) { MessageBox.Show(e.Message, Resources.Error_Title, MessageBoxButtons.OK, MessageBoxIcon.Error); }