From 1a573aaa346ec4b8bd58a0e35ab9df571a09b855 Mon Sep 17 00:00:00 2001 From: Roy Date: Tue, 20 Feb 2018 00:03:51 +0200 Subject: Added logs to developer module! --- .../Controls/IOMonitorControl.xaml | 115 --------------------- .../Controls/IOMonitorControl.xaml.cs | 109 ------------------- 2 files changed, 224 deletions(-) delete mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Controls/IOMonitorControl.xaml delete mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Controls/IOMonitorControl.xaml.cs (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Controls') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Controls/IOMonitorControl.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Controls/IOMonitorControl.xaml deleted file mode 100644 index c40e69d98..000000000 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Controls/IOMonitorControl.xaml +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Controls/IOMonitorControl.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Controls/IOMonitorControl.xaml.cs deleted file mode 100644 index bc408958d..000000000 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Controls/IOMonitorControl.xaml.cs +++ /dev/null @@ -1,109 +0,0 @@ -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.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; -using Tango.Core.Commands; - -namespace Tango.MachineStudio.Developer.Controls -{ - /// - /// Interaction logic for IOMonitorControl.xaml - /// - public partial class IOMonitorControl : UserControl - { - public ICommand ForwardPressedCommand - { - get { return (ICommand)GetValue(ForwardPressedCommandProperty); } - set { SetValue(ForwardPressedCommandProperty, value); } - } - public static readonly DependencyProperty ForwardPressedCommandProperty = - DependencyProperty.Register("ForwardPressedCommand", typeof(ICommand), typeof(IOMonitorControl), new PropertyMetadata(null)); - - public ICommand ForwardReleasedCommand - { - get { return (ICommand)GetValue(ForwardReleasedCommandProperty); } - set { SetValue(ForwardReleasedCommandProperty, value); } - } - public static readonly DependencyProperty ForwardReleasedCommandProperty = - DependencyProperty.Register("ForwardReleasedCommand", typeof(ICommand), typeof(IOMonitorControl), new PropertyMetadata(null)); - - public ICommand BackwardPressedCommand - { - get { return (ICommand)GetValue(BackwardPressedCommandProperty); } - set { SetValue(BackwardPressedCommandProperty, value); } - } - public static readonly DependencyProperty BackwardPressedCommandProperty = - DependencyProperty.Register("BackwardPressedCommand", typeof(ICommand), typeof(IOMonitorControl), new PropertyMetadata(null)); - - public ICommand BackwardReleasedCommand - { - get { return (ICommand)GetValue(BackwardReleasedCommandProperty); } - set { SetValue(BackwardReleasedCommandProperty, value); } - } - public static readonly DependencyProperty BackwardReleasedCommandProperty = - DependencyProperty.Register("BackwardReleasedCommand", typeof(ICommand), typeof(IOMonitorControl), new PropertyMetadata(null)); - - public object CommandParameter - { - get { return (object)GetValue(CommandParameterProperty); } - set { SetValue(CommandParameterProperty, value); } - } - public static readonly DependencyProperty CommandParameterProperty = - DependencyProperty.Register("CommandParameter", typeof(object), typeof(IOMonitorControl), new PropertyMetadata(null)); - - public String Value - { - get { return (String)GetValue(ValueProperty); } - set { SetValue(ValueProperty, value); } - } - public static readonly DependencyProperty ValueProperty = - DependencyProperty.Register("Value", typeof(String), typeof(IOMonitorControl), new PropertyMetadata("0000")); - - public IOMonitorControl() - { - InitializeComponent(); - } - - private void OnForwardPressed(object sender, MouseButtonEventArgs e) - { - if (ForwardPressedCommand != null) - { - ForwardPressedCommand.Execute(CommandParameter); - } - } - - private void OnForwardReleased(object sender, MouseButtonEventArgs e) - { - if (ForwardReleasedCommand != null) - { - ForwardReleasedCommand.Execute(CommandParameter); - } - } - - private void OnBackwardPressed(object sender, MouseButtonEventArgs e) - { - if (BackwardPressedCommand != null) - { - BackwardPressedCommand.Execute(CommandParameter); - } - } - - private void OnBackwardReleased(object sender, MouseButtonEventArgs e) - { - if (BackwardReleasedCommand != null) - { - BackwardReleasedCommand.Execute(CommandParameter); - } - } - } -} -- cgit v1.3.1