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 5980b9407856e4376a89b50da9d275847dab3e02
parent 8bec28576e72cafb06dce087feda41032c3399b6
Author: René Wagner <rwagner@rw-net.de>
Date:   Wed, 18 Nov 2020 16:17:32 +0100

add feierabend question

Diffstat:
MWorkTimeHero/MainForm.cs | 7++++++-
MWorkTimeHero/Properties/AssemblyInfo.cs | 10+++++++---
MWorkTimeHero/WorkTimeHero.csproj | 4++--
MWorkTimeHero/clock-stop-icon.ico | 0
4 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/WorkTimeHero/MainForm.cs b/WorkTimeHero/MainForm.cs @@ -245,8 +245,13 @@ namespace WorkTimeHero if (cboIndividualBreak.Checked) { Settings.Default.IndividualBreakTime = wtc.IndividualBreakTime; } Settings.Default.CurrentBreakStartTime = wtc.CurrentBreakStartTime; Settings.Default.TargetTime = wtc.TargetTime; - Settings.Default.PreDayWorkTime = DateTime.Now.Date.Add(wtc.DoneWorkTime); Settings.Default.Save(); + + if ( MessageBox.Show("Is scho so weit?", "Feierabend", MessageBoxButtons.YesNo) == DialogResult.Yes) + { + Settings.Default.PreDayWorkTime = DateTime.Now.Date.Add(wtc.DoneWorkTime); + Settings.Default.Save(); + } } private void dtpTargetTime_ValueChanged(object sender, EventArgs e) diff --git a/WorkTimeHero/Properties/AssemblyInfo.cs b/WorkTimeHero/Properties/AssemblyInfo.cs @@ -1,4 +1,5 @@ -using System.Reflection; +using System; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -32,5 +33,7 @@ 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.5.2.0")] -[assembly: AssemblyFileVersion("1.5.2.0")] +[assembly: AssemblyVersion("1.5.3.0")] +[assembly: AssemblyFileVersion("1.5.3.0")] + +[assembly: CLSCompliant(true)] +\ No newline at end of file diff --git a/WorkTimeHero/WorkTimeHero.csproj b/WorkTimeHero/WorkTimeHero.csproj @@ -35,6 +35,7 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <RunCodeAnalysis>true</RunCodeAnalysis> + <CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet> </PropertyGroup> <PropertyGroup> <SignAssembly>true</SignAssembly> @@ -43,8 +44,7 @@ <AssemblyOriginatorKeyFile>..\sgKey.snk</AssemblyOriginatorKeyFile> </PropertyGroup> <PropertyGroup> - <ApplicationIcon> - </ApplicationIcon> + <ApplicationIcon>clock-icon.ico</ApplicationIcon> </PropertyGroup> <PropertyGroup> <StartupObject>WorkTimeHero.Program</StartupObject> diff --git a/WorkTimeHero/clock-stop-icon.ico b/WorkTimeHero/clock-stop-icon.ico Binary files differ.