/// <summary> /// Event dispatcher for SynchronizeError events. /// </summary> /// <param name="device">The device that failed.</param> /// <param name="message">An error message.</param> protected void OnSynchronizeError(Device device, string message) { if (SynchronizeError != null) { SyncErrorArgs args = new SyncErrorArgs(); args.Device = device; args.ErrorMessage = message; SynchronizeError(this, args); } }
private void OnSynchronizeError(object sender, SyncErrorArgs args) { itaTray.ShowBalloonTip(5, "Synchronize error", args.ErrorMessage, ToolTipIcon.Error); }