Little Registry Cleaner/AutoUpdater.NET/UpdateForm.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Diagnostics;
using System.Globalization;
using System.Windows.Forms;
using Microsoft.Win32;
namespace AutoUpdaterDotNET
{
internal partial class UpdateForm : Form
{
private System.Timers.Timer _timer;
public UpdateForm(bool remindLater = false)
{
if (!remindLater)
{
InitializeComponent();
var resources = new System.ComponentModel.ComponentResourceManager(typeof(UpdateForm));
Text = AutoUpdater.DialogTitle;
labelUpdate.Text = string.Format(resources.GetString("labelUpdate.Text", CultureInfo.CurrentCulture), AutoUpdater.AppTitle);
labelDescription.Text =
string.Format(resources.GetString("labelDescription.Text", CultureInfo.CurrentCulture),
AutoUpdater.AppTitle, AutoUpdater.CurrentVersion, AutoUpdater.InstalledVersion);
}
}
public override sealed string Text
{
get { return base.Text; }
set { base.Text = value; }
}
private void UpdateFormLoad(object sender, EventArgs e)
{
webBrowser.Navigate(AutoUpdater.ChangeLogURL);
}
private void ButtonUpdateClick(object sender, EventArgs e)
{
if (AutoUpdater.OpenDownloadPage)
{
var processStartInfo = new ProcessStartInfo(AutoUpdater.DownloadURL);
Process.Start(processStartInfo);
}
else
{
var downloadDialog = new DownloadUpdateDialog(AutoUpdater.DownloadURL);
try
{
downloadDialog.ShowDialog();
}
catch (System.Reflection.TargetInvocationException)
{
}
}
}
private void ButtonSkipClick(object sender, EventArgs e)
后面还有 87 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。