From 0c0558642a570b786603f3f74f91d1fe939ecc92 Mon Sep 17 00:00:00 2001 From: g3gg0 Date: Tue, 23 Jan 2024 11:31:53 +0100 Subject: [PATCH] more info in update dialog --- TeddyBench/TeddyMain.cs | 2 +- TeddyBench/UpdateNotifyDialog.Designer.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TeddyBench/TeddyMain.cs b/TeddyBench/TeddyMain.cs index 89557d8..8d6e61a 100644 --- a/TeddyBench/TeddyMain.cs +++ b/TeddyBench/TeddyMain.cs @@ -480,7 +480,7 @@ async Task DownloadFile(string url, string destinationFileName) BeginInvoke(new Action(async () => { - UpdateNotifyDialog dlg = new UpdateNotifyDialog(latestVersion, (string)latestRelease.name); + UpdateNotifyDialog dlg = new UpdateNotifyDialog(latestVersion + " (yours: " + thisVersion + ")", (string)latestRelease.name); if (dlg.ShowDialog() == DialogResult.Yes) { await DownloadFile(url, zipName); diff --git a/TeddyBench/UpdateNotifyDialog.Designer.cs b/TeddyBench/UpdateNotifyDialog.Designer.cs index 826a767..4ae66ea 100644 --- a/TeddyBench/UpdateNotifyDialog.Designer.cs +++ b/TeddyBench/UpdateNotifyDialog.Designer.cs @@ -38,7 +38,7 @@ private void InitializeComponent() // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(11, 11); + this.label1.Location = new System.Drawing.Point(12, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(212, 26); this.label1.TabIndex = 0; @@ -46,7 +46,7 @@ private void InitializeComponent() // // btnYes // - this.btnYes.Location = new System.Drawing.Point(38, 54); + this.btnYes.Location = new System.Drawing.Point(112, 40); this.btnYes.Name = "btnYes"; this.btnYes.Size = new System.Drawing.Size(64, 20); this.btnYes.TabIndex = 1; @@ -57,7 +57,7 @@ private void InitializeComponent() // btnNo // this.btnNo.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnNo.Location = new System.Drawing.Point(116, 54); + this.btnNo.Location = new System.Drawing.Point(191, 40); this.btnNo.Name = "btnNo"; this.btnNo.Size = new System.Drawing.Size(64, 20); this.btnNo.TabIndex = 1; @@ -71,7 +71,7 @@ private void InitializeComponent() this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnNo; - this.ClientSize = new System.Drawing.Size(221, 79); + this.ClientSize = new System.Drawing.Size(352, 72); this.Controls.Add(this.btnNo); this.Controls.Add(this.btnYes); this.Controls.Add(this.label1);