From e571f20e27c4fca6bb6efe03d6427a1f332f9830 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 27 May 2018 19:33:15 +0300 Subject: Working on panel pc. --- .../PPC/Tango.PPC.UI/MainWindow.xaml.cs | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs new file mode 100644 index 000000000..42ea21123 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Forms; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.PPC.UI +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public static MainWindow Instance { get; private set; } + + public MainWindow() + { + Instance = this; + + InitializeComponent(); + + WindowStartupLocation = WindowStartupLocation.Manual; + var lastMonitor = Screen.AllScreens.LastOrDefault(); + Left = lastMonitor.Bounds.Left; + Top = lastMonitor.Bounds.Top; + Width = lastMonitor.Bounds.Width; + Height = lastMonitor.Bounds.Height; + } + } +} -- cgit v1.3.1