Skip to content

Commit

Permalink
Fix FormatExceptions in some regions
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas694 committed Oct 15, 2021
1 parent 5b1147b commit 9a99aca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions src/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
Expand Down Expand Up @@ -206,12 +205,12 @@ private void ReadSettings()
_imageDurationSeconds = int.Parse(section.Settings.Get("ImageDurationSeconds").Value.ValueXml.InnerText);
_includedFileExtensions = section.Settings.Get("IncludedFileExtensions").Value.ValueXml.InnerText;
_msgColor = section.Settings.Get("MsgColor").Value.ValueXml.InnerText;
_msgFadeoutSeconds = double.Parse(section.Settings.Get("MsgFadeoutSeconds").Value.ValueXml.InnerText);
_msgFadeoutSeconds = double.Parse(section.Settings.Get("MsgFadeoutSeconds").Value.ValueXml.InnerText, NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture);
_runAnimatedGifs = bool.Parse(section.Settings.Get("RunAnimatedGifs").Value.ValueXml.InnerText);
_showHelpOnLoad = bool.Parse(section.Settings.Get("ShowHelpOnLoad").Value.ValueXml.InnerText);
_zoomMax = double.Parse(section.Settings.Get("ZoomMax").Value.ValueXml.InnerText);
_zoomMin = double.Parse(section.Settings.Get("ZoomMin").Value.ValueXml.InnerText);
_zoomStep = double.Parse(section.Settings.Get("ZoomStep").Value.ValueXml.InnerText);
_zoomMax = double.Parse(section.Settings.Get("ZoomMax").Value.ValueXml.InnerText, NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture);
_zoomMin = double.Parse(section.Settings.Get("ZoomMin").Value.ValueXml.InnerText, NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture);
_zoomStep = double.Parse(section.Settings.Get("ZoomStep").Value.ValueXml.InnerText, NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]
[assembly: AssemblyVersion("1.1.2.0")]
[assembly: AssemblyFileVersion("1.1.2.0")]

0 comments on commit 9a99aca

Please sign in to comment.