protected virtual void OnError(ErrorEventArgs e) { EventHandler<ErrorEventArgs> handler = Error; if(handler != null) { context.Post(delegate(object dummy) { handler(this, e); }, null); } }
private void inDevice_Error(object sender, ErrorEventArgs e) { MessageBox.Show(e.Error.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Stop); }
private static void Indevice_Error(object sender, Sanford.Multimedia.ErrorEventArgs e) { SendEncoded(e.Error, "error"); //LogOutMessage(e.Error); //client.Send(e.Error.Message.ToString()); }
protected virtual void OnError(ErrorEventArgs e) { return; }