aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-10-17 15:20:02 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-10-17 15:20:02 +0300
commit043e92664e7ecae291c5152721e9c294f8cf5216 (patch)
tree2abcc38bd8b61c65a732dd7bedc5191b3cd840db /Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
parent997eee30e7bf9d9a91d8c3c65e2d3206e83a7b2d (diff)
downloadTango-043e92664e7ecae291c5152721e9c294f8cf5216.tar.gz
Tango-043e92664e7ecae291c5152721e9c294f8cf5216.zip
Added support for demo mode on PPC.
Fixed issue with jobs list on PPC.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
index ca26b7761..4c844657d 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
@@ -32,6 +32,7 @@ namespace Tango.PPC.UI
InitializeComponent();
+#if !DESKTOP
if (TouchHelper.IsTouchEnabled())
{
WindowStyle = WindowStyle.None;
@@ -52,6 +53,15 @@ namespace Tango.PPC.UI
Height = touch_screen.Bounds.Height;
}
}
+#endif
+
+
+ Closing += MainWindow_Closing;
+ }
+
+ private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
+ {
+ Environment.Exit(0);
}
}
}