diff --git a/Setup/Setup.Designer.cs b/Setup/Setup.Designer.cs index 67c9998..9e3b784 100644 --- a/Setup/Setup.Designer.cs +++ b/Setup/Setup.Designer.cs @@ -71,7 +71,7 @@ private void InitializeComponent() label2.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; label2.AutoSize = true; label2.FlatStyle = FlatStyle.Flat; - label2.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); + label2.Font = new Font("Segoe UI", 9F, FontStyle.Bold); label2.Location = new Point(18, 83); label2.Name = "label2"; label2.Size = new Size(121, 15); @@ -83,8 +83,8 @@ private void InitializeComponent() label3.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; label3.AutoSize = true; label3.FlatStyle = FlatStyle.System; - label3.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - label3.Location = new Point(18, 98); + label3.Font = new Font("Segoe UI", 9F, FontStyle.Bold); + label3.Location = new Point(20, 98); label3.Name = "label3"; label3.Size = new Size(118, 15); label3.TabIndex = 7; @@ -95,8 +95,8 @@ private void InitializeComponent() label4.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; label4.AutoSize = true; label4.FlatStyle = FlatStyle.System; - label4.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); - label4.Location = new Point(18, 149); + label4.Font = new Font("Segoe UI", 9F, FontStyle.Bold); + label4.Location = new Point(20, 149); label4.Name = "label4"; label4.Size = new Size(74, 15); label4.TabIndex = 8; @@ -107,7 +107,7 @@ private void InitializeComponent() label5.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; label5.AutoSize = true; label5.FlatStyle = FlatStyle.System; - label5.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); + label5.Font = new Font("Segoe UI", 9F, FontStyle.Bold); label5.Location = new Point(18, 354); label5.Name = "label5"; label5.Size = new Size(91, 15); @@ -122,6 +122,7 @@ private void InitializeComponent() label1.Size = new Size(374, 67); label1.TabIndex = 5; label1.Text = resources.GetString("label1.Text"); + label1.Click += label1_Click; // // label6 // diff --git a/Setup/Setup.cs b/Setup/Setup.cs index 19a5bbc..ef050c8 100644 --- a/Setup/Setup.cs +++ b/Setup/Setup.cs @@ -43,7 +43,7 @@ private async void button1_Click(object sender, EventArgs e) button1.Enabled = false; - bool a= appUpdater.IsVersionInstalled(RuntimeInformation.FrameworkDescription); + bool a = appUpdater.IsVersionInstalled(RuntimeInformation.FrameworkDescription); if (!a) { @@ -76,16 +76,19 @@ private async void button1_Click(object sender, EventArgs e) } appUpdater.DownloadProgressChanged += AppUpdater_DownloadProgressChanged; - + await appUpdater.DownloadAndOpenFile(); - + //Close(); } - + private void label1_Click(object sender, EventArgs e) + { + + } } } diff --git a/Setup/Setup.csproj b/Setup/Setup.csproj index e248c5a..57f2a98 100644 --- a/Setup/Setup.csproj +++ b/Setup/Setup.csproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows10.0.17763.0 + net8.0-windows10.0.17763.0 enable true enable diff --git a/Setup/Setup.resx b/Setup/Setup.resx index b7000fe..036df28 100644 --- a/Setup/Setup.resx +++ b/Setup/Setup.resx @@ -1,7 +1,7 @@