worktimehero

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.clttr.info/worktimehero.git
Log | Files | Refs | README | LICENSE

commit 1e7f4cee619dbe6be6855e27416f809b2c7560ce
parent bcfa166357b370485fd5f0336d8f271c242ddeaa
Author: René Wagner <rwagner@rw-net.de>
Date:   Mon, 11 May 2020 20:07:53 +0200

~rwa/misc#19: fix auto update not working properly in some edge cases

Diffstat:
MWorkTimeHero/MainForm.Designer.cs | 33+++++++++++++++++----------------
MWorkTimeHero/MainForm.cs | 2--
MWorkTimeHero/Properties/AssemblyInfo.cs | 4++--
3 files changed, 19 insertions(+), 20 deletions(-)

diff --git a/WorkTimeHero/MainForm.Designer.cs b/WorkTimeHero/MainForm.Designer.cs @@ -47,10 +47,10 @@ this.tsmiBeenden = new System.Windows.Forms.ToolStripMenuItem(); this.lblBuchungVorlauf = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.cboAutostart = new System.Windows.Forms.CheckBox(); this.dtpTargetTime = new System.Windows.Forms.DateTimePicker(); this.lblSollzeit = new System.Windows.Forms.Label(); this.nudPreamp = new System.Windows.Forms.NumericUpDown(); - this.cboAutostart = new System.Windows.Forms.CheckBox(); this.cmsNotifyIcon.SuspendLayout(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.nudPreamp)).BeginInit(); @@ -111,7 +111,8 @@ // // refreshTimer // - this.refreshTimer.Interval = 11500; + this.refreshTimer.Enabled = true; + this.refreshTimer.Interval = 15000; this.refreshTimer.Tick += new System.EventHandler(this.refreshTimer_Tick); // // lblRemaining @@ -201,9 +202,9 @@ this.lblBuchungVorlauf.Font = new System.Drawing.Font("Consolas", 9.75F); this.lblBuchungVorlauf.Location = new System.Drawing.Point(6, 27); this.lblBuchungVorlauf.Name = "lblBuchungVorlauf"; - this.lblBuchungVorlauf.Size = new System.Drawing.Size(140, 15); + this.lblBuchungVorlauf.Size = new System.Drawing.Size(175, 15); this.lblBuchungVorlauf.TabIndex = 12; - this.lblBuchungVorlauf.Text = "Buchung Vorlaufzeit"; + this.lblBuchungVorlauf.Text = "Vorlaufzeit Startbuchung"; // // groupBox1 // @@ -220,6 +221,18 @@ this.groupBox1.TabStop = false; this.groupBox1.Text = "Einstellungen"; // + // cboAutostart + // + this.cboAutostart.AutoSize = true; + this.cboAutostart.Font = new System.Drawing.Font("Consolas", 9.75F); + this.cboAutostart.Location = new System.Drawing.Point(9, 88); + this.cboAutostart.Name = "cboAutostart"; + this.cboAutostart.Size = new System.Drawing.Size(159, 19); + this.cboAutostart.TabIndex = 16; + this.cboAutostart.Text = "Mit Windows starten"; + this.cboAutostart.UseVisualStyleBackColor = true; + this.cboAutostart.CheckedChanged += new System.EventHandler(this.cboAutostart_CheckedChanged); + // // dtpTargetTime // this.dtpTargetTime.CustomFormat = "HH:mm"; @@ -264,18 +277,6 @@ this.nudPreamp.TabIndex = 0; this.nudPreamp.Value = global::WorkTimeHero.Properties.Settings.Default.StartTimePreamp; // - // cboAutostart - // - this.cboAutostart.AutoSize = true; - this.cboAutostart.Font = new System.Drawing.Font("Consolas", 9.75F); - this.cboAutostart.Location = new System.Drawing.Point(9, 88); - this.cboAutostart.Name = "cboAutostart"; - this.cboAutostart.Size = new System.Drawing.Size(159, 19); - this.cboAutostart.TabIndex = 16; - this.cboAutostart.Text = "Mit Windows starten"; - this.cboAutostart.UseVisualStyleBackColor = true; - this.cboAutostart.CheckedChanged += new System.EventHandler(this.cboAutostart_CheckedChanged); - // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); diff --git a/WorkTimeHero/MainForm.cs b/WorkTimeHero/MainForm.cs @@ -103,9 +103,7 @@ namespace WorkTimeHero private void dtpStartTime_ValueChanged(object sender, EventArgs e) { - refreshTimer.Enabled = true; RefreshWtc(); - RefreshDisplay(); } private void RefreshWtc() diff --git a/WorkTimeHero/Properties/AssemblyInfo.cs b/WorkTimeHero/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.3.0.0")] -[assembly: AssemblyFileVersion("1.3.0.0")] +[assembly: AssemblyVersion("1.3.1.0")] +[assembly: AssemblyFileVersion("1.3.1.0")]