Beispiel #1
0
 private void NewReleaseAvailable(object sender, UpdateChecker.NewReleaseEvent newReleaseEvent)
 {
     _updateMenuItem.Tag     = newReleaseEvent.Release;
     _updateMenuItem.Text    = string.Format(TrayIconStrings.updateAvailable, newReleaseEvent.Release.ReleaseVersion);
     _updateMenuItem.Enabled = true;
     _trayIcon.ShowBalloonTip(3000, string.Format(TrayIconStrings.versionAvailable, newReleaseEvent.Release.ReleaseVersion), TrayIconStrings.howDownloadUpdate, ToolTipIcon.Info);
 }
Beispiel #2
0
 private void NewReleaseAvailable(object sender, UpdateChecker.NewReleaseEvent newReleaseEvent)
 {
     _updateMenuItem.Tag           = newReleaseEvent.Release;
     _updateMenuItem.Text          = string.Format(TrayIconStrings.updateAvailable, newReleaseEvent.Release.ReleaseVersion);
     _updateMenuItem.Enabled       = true;
     NotifyIcon.BalloonTipClicked += OnUpdateClick;
     NotifyIcon.ShowBalloonTip(3000,
                               string.Format(TrayIconStrings.versionAvailable, newReleaseEvent.Release.ReleaseVersion),
                               newReleaseEvent.Release.Name + '\n' + TrayIconStrings.clickToUpdate, ToolTipIcon.Info);
 }