From 10e1892e2ff3620d5111c3b8e5c9eea5baa08a1a Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 19 Feb 2019 19:10:55 +0200 Subject: Implemented some improvements for PPC. --- .../PPC/Tango.PPC.UI/MainWindow.xaml.cs | 34 ---------------------- 1 file changed, 34 deletions(-) (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 index edc7cce52..364ca8ee7 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs @@ -26,9 +26,6 @@ namespace Tango.PPC.UI /// public partial class MainWindow : Window { - private String _technician_mode_buffer; - private Viewbox viewBox; - public static MainWindow Instance { get; private set; } public MainWindow() @@ -37,8 +34,6 @@ namespace Tango.PPC.UI InitializeComponent(); - _technician_mode_buffer = String.Empty; - bool has_touch = false; #if !DESKTOP @@ -91,34 +86,5 @@ namespace Tango.PPC.UI { TangoIOC.Default.GetInstance().ShutDown(); } - - protected override void OnPreviewKeyDown(System.Windows.Input.KeyEventArgs e) - { - base.OnPreviewKeyDown(e); - - try - { - _technician_mode_buffer += Char.Parse(e.Key.ToString()); - } - catch{} - - if (e.Key == Key.Return || e.Key == Key.Tab) - { - if (_technician_mode_buffer.ToLower().Contains("ENTERTECHNICIAN".ToLower())) - { - _technician_mode_buffer = String.Empty; - TangoIOC.Default.GetInstance().EnterTechnicianMode(); - e.Handled = true; - } - else if (_technician_mode_buffer.ToLower().Contains("EXITTECHNICIAN".ToLower())) - { - _technician_mode_buffer = String.Empty; - TangoIOC.Default.GetInstance().ExitTechnicianMode(); - e.Handled = true; - } - - _technician_mode_buffer = String.Empty; - } - } } } -- cgit v1.3.1