void iAutoUpdate_EventUpdateFound(object sender, AutoUpdate.EventArgsUpdateFound e) { if (!iSystrayForm.IsDisposed && iOptionPageUpdates.AutoUpdate) { iSystrayForm.Invoke((Action)(() => { iSystrayForm.NotifyIcon.BalloonTipClosed += DownloadUpdatesBalloonTipClosed; iSystrayForm.NotifyIcon.BalloonTipClicked += DownloadUpdatesBalloonTipClick; iSystrayForm.NotifyIcon.ShowBalloonTip(5000, "Updates Available", kUpdatesAvailableMessage, System.Windows.Forms.ToolTipIcon.Info); })); } }
private void UpdateFound(object sender, AutoUpdate.EventArgsUpdateFound e) { if (iInvoker.TryBeginInvoke(new EventHandler <AutoUpdate.EventArgsUpdateFound>(UpdateFound), sender, e)) { return; } if (iOptionPageUpdates.AutoUpdate) { iModel.State = AutoUpdateModel.EState.eAvailable; iModel.UpdateInfo = e.Info; iView.StateChanged(iModel); } }