Skip to content

Commit 120502c

Browse files
committed
Release v1.3.0
2 parents 216cab9 + 0e5cc37 commit 120502c

File tree

6 files changed

+27
-15
lines changed

6 files changed

+27
-15
lines changed

Hourglass.Bundle/Bundle.wxs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
33
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
4-
<Bundle Name="Hourglass" Version="1.2.0.0" Manufacturer="Chris Dziemborowicz" UpgradeCode="f1d002c9-cfc9-40fb-84af-96e7aec26e0b" IconSourceFile="$(var.Hourglass.ProjectDir)Resources\AppIcon.ico">
4+
<Bundle Name="Hourglass" Version="1.3.0.0" Manufacturer="Chris Dziemborowicz" UpgradeCode="f1d002c9-cfc9-40fb-84af-96e7aec26e0b" IconSourceFile="$(var.Hourglass.ProjectDir)Resources\AppIcon.ico">
55
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
66
<bal:WixStandardBootstrapperApplication LicenseFile="MIT.rtf" LogoFile="Logo.png"/>
77
</BootstrapperApplicationRef>

Hourglass.Setup/Product.wxs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
33
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
4-
<Product Id="*" Name="Hourglass" Language="1033" Version="1.2.0.0" Manufacturer="Chris Dziemborowicz" UpgradeCode="172d3713-8820-4374-8195-3e2374e7724f">
4+
<Product Id="*" Name="Hourglass" Language="1033" Version="1.3.0.0" Manufacturer="Chris Dziemborowicz" UpgradeCode="172d3713-8820-4374-8195-3e2374e7724f">
55
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/>
66

77
<Icon Id="AppIcon.exe" SourceFile="$(var.Hourglass.ProjectDir)Resources\AppIcon.ico"/>

Hourglass.Test/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
[assembly: AssemblyCulture("")]
1818
[assembly: ComVisible(false)]
1919
[assembly: Guid("002a4be7-7323-4bf9-ab08-5fc8978d9eb0")]
20-
[assembly: AssemblyVersion("1.2.0.0")]
21-
[assembly: AssemblyFileVersion("1.2.0.0")]
20+
[assembly: AssemblyVersion("1.3.0.0")]
21+
[assembly: AssemblyFileVersion("1.3.0.0")]

Hourglass/Properties/App.manifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3-
<assemblyIdentity version="1.2.0.0" name="Hourglass"/>
3+
<assemblyIdentity version="1.3.0.0" name="Hourglass"/>
44
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
55
<security>
66
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">

Hourglass/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
[assembly: AssemblyCopyright("Copyright © 2015 Chris Dziemborowicz")]
1818
[assembly: AssemblyTrademark("")]
1919
[assembly: AssemblyCulture("")]
20-
[assembly: AssemblyVersion("1.2.0.0")]
21-
[assembly: AssemblyFileVersion("1.2.0.0")]
20+
[assembly: AssemblyVersion("1.3.0.0")]
21+
[assembly: AssemblyFileVersion("1.3.0.0")]
2222
[assembly: NeutralResourcesLanguageAttribute("en-US")]
2323
[assembly: Guid("83DBAA61-6193-4288-BBB7-BEAEC33FE321")]
2424
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]

Hourglass/Windows/TimerWindow.xaml.cs

+20-8
Original file line numberDiff line numberDiff line change
@@ -470,18 +470,30 @@ public void Show(Timer existingTimer)
470470
/// <summary>
471471
/// Brings the window to the front.
472472
/// </summary>
473-
public void BringToFront()
473+
/// <returns><c>true</c> if the window is brought to the foreground, or <c>false</c> if the window cannot be
474+
/// brought to the foreground for any reason.</returns>
475+
public bool BringToFront()
474476
{
475-
this.Show();
477+
try
478+
{
479+
this.Show();
480+
481+
if (this.WindowState == WindowState.Minimized)
482+
{
483+
this.WindowState = this.RestoreWindowState;
484+
}
485+
486+
this.Topmost = false;
487+
this.Topmost = true;
488+
this.Topmost = this.Options.AlwaysOnTop;
476489

477-
if (this.WindowState == WindowState.Minimized)
490+
return true;
491+
}
492+
catch (InvalidOperationException)
478493
{
479-
this.WindowState = this.RestoreWindowState;
494+
// This happens if the window is closing (waiting for the user to confirm) when this method is called
495+
return false;
480496
}
481-
482-
this.Topmost = false;
483-
this.Topmost = true;
484-
this.Topmost = this.Options.AlwaysOnTop;
485497
}
486498

487499
/// <summary>

0 commit comments

Comments
 (0)