From 74b5760a38b01211cb8712a3d6dc1bb42d89f862 Mon Sep 17 00:00:00 2001 From: Jonas Nilson Date: Sat, 28 May 2022 21:48:17 +0200 Subject: [PATCH] Beta release label added on top --- Source/IdleMasterExtended/frmMain.Designer.cs | 17 +++++++++++++++++ Source/IdleMasterExtended/frmMain.cs | 5 +++++ 2 files changed, 22 insertions(+) diff --git a/Source/IdleMasterExtended/frmMain.Designer.cs b/Source/IdleMasterExtended/frmMain.Designer.cs index 0bae10c..7e558cb 100644 --- a/Source/IdleMasterExtended/frmMain.Designer.cs +++ b/Source/IdleMasterExtended/frmMain.Designer.cs @@ -89,6 +89,7 @@ private void InitializeComponent() this.lblHoursPlayed = new System.Windows.Forms.Label(); this.tmrStatistics = new System.Windows.Forms.Timer(this.components); this.lnkLatestRelease = new System.Windows.Forms.LinkLabel(); + this.betaReleaseLabel = new System.Windows.Forms.LinkLabel(); this.mnuTop.SuspendLayout(); this.ssFooter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picReadingPage)).BeginInit(); @@ -581,20 +582,35 @@ private void InitializeComponent() // lnkLatestRelease // this.lnkLatestRelease.AutoSize = true; + this.lnkLatestRelease.LinkColor = System.Drawing.Color.Red; this.lnkLatestRelease.Location = new System.Drawing.Point(170, 36); this.lnkLatestRelease.Name = "lnkLatestRelease"; this.lnkLatestRelease.Size = new System.Drawing.Size(79, 13); this.lnkLatestRelease.TabIndex = 30; this.lnkLatestRelease.TabStop = true; this.lnkLatestRelease.Text = "(Latest release)"; + this.lnkLatestRelease.Visible = false; this.lnkLatestRelease.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkLatestRelease_LinkClicked); // + // betaReleaseLabel + // + this.betaReleaseLabel.AutoSize = true; + this.betaReleaseLabel.LinkColor = System.Drawing.Color.Red; + this.betaReleaseLabel.Location = new System.Drawing.Point(184, 36); + this.betaReleaseLabel.Name = "betaReleaseLabel"; + this.betaReleaseLabel.Size = new System.Drawing.Size(105, 13); + this.betaReleaseLabel.TabIndex = 31; + this.betaReleaseLabel.TabStop = true; + this.betaReleaseLabel.Text = "(Current: v1.8-BETA)"; + this.betaReleaseLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.betaReleaseLabel_LinkClicked); + // // frmMain // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Control; this.ClientSize = new System.Drawing.Size(304, 339); + this.Controls.Add(this.betaReleaseLabel); this.Controls.Add(this.lnkLatestRelease); this.Controls.Add(this.lblHoursPlayed); this.Controls.Add(this.GamesState); @@ -699,6 +715,7 @@ private void InitializeComponent() private ToolStripMenuItem whitelistToolStripMenuItem; private ToolStripMenuItem donateToolStripMenuItem; private ToolStripMenuItem wikiToolStripMenuItem; + private LinkLabel betaReleaseLabel; } } diff --git a/Source/IdleMasterExtended/frmMain.cs b/Source/IdleMasterExtended/frmMain.cs index 9ae200e..e96fc8e 100644 --- a/Source/IdleMasterExtended/frmMain.cs +++ b/Source/IdleMasterExtended/frmMain.cs @@ -1205,6 +1205,11 @@ private void lnkLatestRelease_LinkClicked(object sender, LinkLabelLinkClickedEve { Process.Start("https://github.com/JonasNilson/idle_master_extended/releases"); } + + private void betaReleaseLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + Process.Start("https://github.com/JonasNilson/idle_master_extended/releases"); + } #endregion #region TIMERS