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 551da91f261d0dd090f2f803696c18903202e253
parent b74c11891e55dd99e647cb65227884956e849af4
Author: René Wagner <rwagner@rw-net.de>
Date:   Sat,  9 May 2020 09:52:52 +0200

~rwa/misc#18: avoid resetting individual break on disabling

Diffstat:
MWorkTimeHero/MainForm.cs | 11+++--------
1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/WorkTimeHero/MainForm.cs b/WorkTimeHero/MainForm.cs @@ -44,11 +44,6 @@ namespace WorkTimeHero lblRemaining.Text = string.Format("{1,-20}{0}", wtc.RemainingWorkTime.ToString(TimeFormatter), "Verbleibend:"); lblTimeDue.Text = string.Format("{1,-20}{0}", wtc.TimeDue.ToString(TimeFormatter), "Uhrzeit:"); - if (!dtpBreak.Enabled) - { - dtpBreak.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, wtc.CurrentBreakTime.Hours, wtc.CurrentBreakTime.Minutes, 0); - } - RefreshTooltip(); RefreshIcons(); } @@ -143,10 +138,10 @@ namespace WorkTimeHero private void ntiWorkTimeHero_MouseDoubleClick(object sender, MouseEventArgs e) { - ToogleVisiblity(); + ToggleVisiblity(); } - private void ToogleVisiblity() + private void ToggleVisiblity() { if (Visible) { @@ -187,7 +182,7 @@ namespace WorkTimeHero private void tsmiToogleView_Click(object sender, EventArgs e) { - ToogleVisiblity(); + ToggleVisiblity(); } private void MainForm_FormClosing(object sender, FormClosingEventArgs e)