aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-12 19:00:36 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-12 19:00:36 +0300
commit18fc4053deb06af6643f28a6bb4fd66c6a9a93e0 (patch)
treedb2e3b344e30a95a3a09d662930ce129246a57d9 /Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml.cs
parentbbbc155a96729050b9aa7d966055726df46696af (diff)
downloadTango-18fc4053deb06af6643f28a6bb4fd66c6a9a93e0.tar.gz
Tango-18fc4053deb06af6643f28a6bb4fd66c6a9a93e0.zip
Implemented temporary DB user login for machine service machine setup.
Implemented Tango updater! Implemented support for software update on machine setup.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml.cs
index f33ca1c42..4187967dc 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/App.xaml.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Configuration;
using System.Data;
+using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
@@ -20,6 +21,7 @@ namespace Tango.PPC.UI
/// </summary>
public partial class App : Application
{
+ public static String[] StartupArgs { get; private set; }
private LogManager LogManager = LogManager.Default;
/// <summary>
@@ -28,6 +30,14 @@ namespace Tango.PPC.UI
/// <param name="e">A <see cref="T:System.Windows.StartupEventArgs" /> that contains the event data.</param>
protected override void OnStartup(StartupEventArgs e)
{
+ //If no debugger is attached and the argument --debug was passed launch the debugger
+ if (e.Args.Contains("-debug") && !Debugger.IsAttached)
+ {
+ Debugger.Launch();
+ }
+
+ StartupArgs = e.Args;
+
LogManager.RegisterLogger(new VSOutputLogger());
LogManager.RegisterLogger(new FileLogger());