diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-10-23 13:45:36 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-10-23 13:45:36 +0300 |
| commit | 68f524e2b0cf3f3628e5ec21aaf311abe5ec242a (patch) | |
| tree | 2763bca164631da49428f954488a07ce33c26893 /Software/Visual_Studio/PPC | |
| parent | 91082afaed2e859e42bad9b06739075689e71b3e (diff) | |
| download | Tango-68f524e2b0cf3f3628e5ec21aaf311abe5ec242a.tar.gz Tango-68f524e2b0cf3f3628e5ec21aaf311abe5ec242a.zip | |
Redundant
Diffstat (limited to 'Software/Visual_Studio/PPC')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs | 11 |
1 files changed, 5 insertions, 6 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 4c844657d..219c25f45 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs @@ -35,18 +35,17 @@ namespace Tango.PPC.UI #if !DESKTOP if (TouchHelper.IsTouchEnabled()) { - WindowStyle = WindowStyle.None; - ResizeMode = ResizeMode.NoResize; - WindowStartupLocation = WindowStartupLocation.Manual; - Topmost = true; // sure? - var screens = System.Windows.Forms.Screen.AllScreens; //Search for the vertical touch monitor. - var touch_screen = screens.Where(x => x.Bounds.Height > x.Bounds.Width).Last(); + var touch_screen = screens.Where(x => x.Bounds.Height > x.Bounds.Width).LastOrDefault(); if (touch_screen != null) { + WindowStyle = WindowStyle.None; + ResizeMode = ResizeMode.NoResize; + WindowStartupLocation = WindowStartupLocation.Manual; + Topmost = true; // sure? Left = touch_screen.Bounds.Left; Top = touch_screen.Bounds.Top; Width = touch_screen.Bounds.Width; |
