aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-02-20 18:19:55 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-02-20 18:19:55 +0200
commit83d10267952a89ee26cc2b4fad0904247d50f5b2 (patch)
tree318fb9a3adae9b2ff118a4a48948a05876f6d2fd /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
parentdb89412e079e151a3217ed2a108820ebe6ba2f30 (diff)
downloadTango-83d10267952a89ee26cc2b4fad0904247d50f5b2.tar.gz
Tango-83d10267952a89ee26cc2b4fad0904247d50f5b2.zip
Fixed all issues with machine studio installer.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs16
1 files changed, 12 insertions, 4 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
index dfbc0eb77..15c8abcde 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
@@ -15,6 +15,7 @@ using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Tango.Core.Helpers;
+using Tango.Logging;
using Tango.MachineStudio.Common.StudioApplication;
namespace Tango.MachineStudio.UI
@@ -28,11 +29,18 @@ namespace Tango.MachineStudio.UI
public MainWindow()
{
- InitializeComponent();
- Instance = this;
- ThreadsHelper.SetDisptacher(Dispatcher);
+ try
+ {
+ InitializeComponent();
+ Instance = this;
+ ThreadsHelper.SetDisptacher(Dispatcher);
- this.Closing += MainWindow_Closing;
+ this.Closing += MainWindow_Closing;
+ }
+ catch (Exception ex)
+ {
+ LogManager.Log(ex);
+ }
}
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)