Formatting time used in start procedure log output
This commit is contained in:
@ -114,7 +114,7 @@ namespace Tidstagning
|
||||
Run();
|
||||
return;//time already passed
|
||||
}
|
||||
log.Write("Næste signal: " + alertTime.ToString() + " Om: " + timeToGo.ToString());
|
||||
log.Write("Næste signal: " + alertTime.ToString(@"HH\:mm\:ss") + " Om: " + timeToGo.ToString(@"hh\:mm\:ss"));
|
||||
timer = new System.Threading.Timer(x =>
|
||||
{
|
||||
this.Alarm();
|
||||
|
@ -35,12 +35,17 @@ namespace Tidstagning
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sound the horn for a given time
|
||||
* Uses a thread to postpone the off call.
|
||||
*/
|
||||
public void Sound(int time)
|
||||
{
|
||||
Debug.WriteLine("Requesting horn for: " + time.ToString() + "ms");
|
||||
On();
|
||||
cooldownTimer = new System.Threading.Timer(x =>
|
||||
{
|
||||
Debug.WriteLine("Delayed off");
|
||||
Off();
|
||||
}, null, new TimeSpan(0, 0, time / 1000), new System.TimeSpan(0));
|
||||
}
|
||||
|
@ -15,7 +15,7 @@
|
||||
</TargetFrameworkProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>G:\Tidstagning\</PublishUrl>
|
||||
<PublishUrl>C:\Users\JCT\Documents\Tidstagning\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
@ -29,7 +29,7 @@
|
||||
<PublisherName>LEAX</PublisherName>
|
||||
<SuiteName>Lemvig Sejlklub</SuiteName>
|
||||
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
|
||||
<ApplicationRevision>23</ApplicationRevision>
|
||||
<ApplicationRevision>24</ApplicationRevision>
|
||||
<ApplicationVersion>1.1.2.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>true</UseApplicationTrust>
|
||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||
@ -64,7 +64,7 @@
|
||||
<ManifestKeyFile>Tidstagning_TemporaryKey.pfx</ManifestKeyFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<GenerateManifests>false</GenerateManifests>
|
||||
<GenerateManifests>true</GenerateManifests>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignManifests>false</SignManifests>
|
||||
|
@ -11,4 +11,7 @@
|
||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<EnableSecurityDebugging>false</EnableSecurityDebugging>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user