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>2019-02-19 19:10:55 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-02-19 19:10:55 +0200
commit10e1892e2ff3620d5111c3b8e5c9eea5baa08a1a (patch)
treec5a2f02332896ed2b5972abde7d6abfb50565500 /Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
parente17d15cb372dbae9a11c09d76f8ca14265f40334 (diff)
downloadTango-10e1892e2ff3620d5111c3b8e5c9eea5baa08a1a.tar.gz
Tango-10e1892e2ff3620d5111c3b8e5c9eea5baa08a1a.zip
Implemented some improvements for 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.cs34
1 files changed, 0 insertions, 34 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 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
/// </summary>
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<IPPCApplicationManager>().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<IPPCApplicationManager>().EnterTechnicianMode();
- e.Handled = true;
- }
- else if (_technician_mode_buffer.ToLower().Contains("EXITTECHNICIAN".ToLower()))
- {
- _technician_mode_buffer = String.Empty;
- TangoIOC.Default.GetInstance<IPPCApplicationManager>().ExitTechnicianMode();
- e.Handled = true;
- }
-
- _technician_mode_buffer = String.Empty;
- }
- }
}
}