/// <summary>
        /// 已找到更新
        /// </summary>
        protected virtual void OnUpdatesFound()
        {
            var u = UpdaterInstance;

            //是否强制更新?
            if (u.Context.ForceUpdate)
            {
                StartDownloadUpdate();
                return;
            }
            foreach (Form openForm in Application.OpenForms)
            {
                if (openForm is UpdateFound)
                {
                    return;
                }
            }

            using (var dlg = new UpdateFound())
            {
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    StartDownloadUpdate();
                }
                else
                {
                    Close();
                }
            }
        }
		void upd_UpdatesFound(object sender, EventArgs e)
		{
			var u = Updater.Instance;

			//是否强制更新?
			if (u.Context.ForceUpdate)
			{
				StartUpdate();
				return;
			}
			var dlg = new UpdateFound();
			if (dlg.ShowDialog() == DialogResult.OK)
				StartUpdate();
			else Close();
		}
예제 #3
0
        void upd_UpdatesFound(object sender, EventArgs e)
        {
            var u = Updater.Instance;

            //是否强制更新?
            if (u.Context.ForceUpdate)
            {
                StartUpdate();
                return;
            }
            var dlg = new UpdateFound();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                StartUpdate();
            }
            else
            {
                Close();
            }
        }
예제 #4
0
        /// <summary>
        /// 已找到更新
        /// </summary>
        protected virtual void OnUpdatesFound()
        {
            var u = UpdaterInstance;

            //是否强制更新?
            if (u.Context.ForceUpdate)
            {
                StartDownloadUpdate();
                return;
            }
            using (var dlg = new UpdateFound())
            {
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    StartDownloadUpdate();
                }
                else
                {
                    Close();
                }
            }
        }
		/// <summary>
		/// 已找到更新
		/// </summary>
		protected virtual void OnUpdatesFound()
		{
			var u = UpdaterInstance;

			//是否强制更新?
			if (u.Context.ForceUpdate)
			{
				StartDownloadUpdate();
				return;
			}
			using (var dlg = new UpdateFound())
			{
				if (dlg.ShowDialog() == DialogResult.OK)
					StartDownloadUpdate();
				else Close();
			}
		}
		/// <summary>
		/// 已找到更新
		/// </summary>
		protected virtual void OnUpdatesFound()
		{
			var u = UpdaterInstance;

			//是否强制更新?
			if (u.Context.ForceUpdate)
			{
				StartDownloadUpdate();
				return;
			}
			foreach (Form openForm in Application.OpenForms)
			{
				if (openForm is UpdateFound)
					return;
			}

			using (var dlg = new UpdateFound())
			{
				if (dlg.ShowDialog() == DialogResult.OK)
					StartDownloadUpdate();
				else Close();
			}
		}