示例#1
0
        /// <summary>
        /// 新たな更新情報が確認された後の手続きを確認します。
        /// </summary>
        private NextUpdateAction OnUpdateDetected(AppCastItem latestVersion)
        {
            var e = new UpdateDetectedEventArgs
            {
                NextAction        = NextUpdateAction.ContinueToUpdate,
                ApplicationConfig = config,
                LatestVersion     = latestVersion,
            };

            UpdateDetected.SafeRaiseEvent(this, e);
            return(e.NextAction);
        }
示例#2
0
        /// <summary>
        /// 新たな更新情報が確認された後の手続きを確認します。
        /// </summary>
        private NextUpdateAction OnUpdateDetected(AppCastItem latestVersion)
        {
            var e = new UpdateDetectedEventArgs
            {
                NextAction = NextUpdateAction.ContinueToUpdate,
                ApplicationConfig = config,
                LatestVersion = latestVersion,
            };

            UpdateDetected.SafeRaiseEvent(this, e);
            return e.NextAction;
        }
 void updater_UpdateDetected(object sender, UpdateDetectedEventArgs e)
 {
     LatestVersion = e.LatestVersion.Version;
     ReleaseNotesLink = e.LatestVersion.ReleaseNotesLink;
 }