commit b74c11891e55dd99e647cb65227884956e849af4
parent e51865d791cc187a1f492586a86d1bcab2fca2e4
Author: René Wagner <rwagner@rw-net.de>
Date: Sat, 9 May 2020 09:41:09 +0200
remove TFS connection
Diffstat:
6 files changed, 57 insertions(+), 87 deletions(-)
diff --git a/WorkTimeHero.vssscc b/WorkTimeHero.vssscc
@@ -1,10 +0,0 @@
-""
-{
-"FILE_VERSION" = "9237"
-"ENLISTMENT_CHOICE" = "NEVER"
-"PROJECT_FILE_RELATIVE_PATH" = ""
-"NUMBER_OF_EXCLUDED_FILES" = "0"
-"ORIGINAL_PROJECT_FILE_PATH" = ""
-"NUMBER_OF_NESTED_PROJECTS" = "0"
-"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
-}
diff --git a/WorkTimeHero/MainForm.cs b/WorkTimeHero/MainForm.cs
@@ -55,7 +55,7 @@ namespace WorkTimeHero
private void RefreshTooltip()
{
- string toolTipInfo = string.Empty;
+ string toolTipInfo;
if (wtc.AdditionalWorkTime.TotalMinutes > 0)
{
toolTipInfo = wtc.AdditionalWorkTime.ToString(TimeFormatter) + " Überstunden";
@@ -115,9 +115,10 @@ namespace WorkTimeHero
private void RefreshWtc()
{
- wtc = new WorkTimeCalculator(new TimeSpan(dtpStartTime.Value.Hour, dtpStartTime.Value.Minute, 0));
-
- wtc.TargetTime = dtpTargetTime.Value.TimeOfDay;
+ wtc = new WorkTimeCalculator(new TimeSpan(dtpStartTime.Value.Hour, dtpStartTime.Value.Minute, 0))
+ {
+ TargetTime = dtpTargetTime.Value.TimeOfDay
+ };
if (!dtpBreak.Enabled)
{
wtc.IndividualBreakTime = null;
diff --git a/WorkTimeHero/Program.cs b/WorkTimeHero/Program.cs
@@ -2,56 +2,55 @@
// Copyright(c) 2018-2020 René Wagner
// https://git.sr.ht/~rwa/worktimehero
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-namespace WorkTimeHero
-{
- static class Program
- {
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main()
- {
- Boolean createdNew;
- Mutex mut = new Mutex( true, "WorkTimeHero", out createdNew );
- try
- {
- if ( createdNew )
- {
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault( false );
- Application.Run( new MainForm() );
-
- // Release the Mutex.
- mut.ReleaseMutex();
- }
- else
- {
- MessageBox.Show("Programm läuft schon", "WorkTimeHero");
- }
- }
- catch ( Exception ex )
- {
- MessageBox.Show( ex.ToString() );
- }
- finally
- {
- // Mutex schließen
- if ( mut != null )
- {
- if ( createdNew )
- {
- mut.Close();
- }
- }
- }
- }
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace WorkTimeHero
+{
+ static class Program
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+ Mutex mut = new Mutex(true, "WorkTimeHero", out bool createdNew);
+ try
+ {
+ if ( createdNew )
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault( false );
+ Application.Run( new MainForm() );
+
+ // Release the Mutex.
+ mut.ReleaseMutex();
+ }
+ else
+ {
+ MessageBox.Show("Programm läuft schon", "WorkTimeHero");
+ }
+ }
+ catch ( Exception ex )
+ {
+ MessageBox.Show( ex.ToString() );
+ }
+ finally
+ {
+ // Mutex schließen
+ if ( mut != null )
+ {
+ if ( createdNew )
+ {
+ mut.Close();
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/WorkTimeHero/WorkTimeHero.csproj.vspscc b/WorkTimeHero/WorkTimeHero.csproj.vspscc
@@ -1,10 +0,0 @@
-""
-{
-"FILE_VERSION" = "9237"
-"ENLISTMENT_CHOICE" = "NEVER"
-"PROJECT_FILE_RELATIVE_PATH" = "relative:WorkTimeHero"
-"NUMBER_OF_EXCLUDED_FILES" = "0"
-"ORIGINAL_PROJECT_FILE_PATH" = ""
-"NUMBER_OF_NESTED_PROJECTS" = "0"
-"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
-}
diff --git a/WorkTimeHeroTest/WorkTimeHeroTest.csproj.vspscc b/WorkTimeHeroTest/WorkTimeHeroTest.csproj.vspscc
@@ -1,10 +0,0 @@
-""
-{
-"FILE_VERSION" = "9237"
-"ENLISTMENT_CHOICE" = "NEVER"
-"PROJECT_FILE_RELATIVE_PATH" = "relative:WorkTimeHeroTest"
-"NUMBER_OF_EXCLUDED_FILES" = "0"
-"ORIGINAL_PROJECT_FILE_PATH" = ""
-"NUMBER_OF_NESTED_PROJECTS" = "0"
-"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
-}
diff --git a/vssver2.scc b/vssver2.scc
Binary files differ.