You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.2 KiB
107 lines
3.2 KiB
using GummingCommon;
|
|
using GummingControl;
|
|
using GummingSupport;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
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;
|
|
|
|
namespace Gumming
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for TemplateListView.xaml
|
|
/// </summary>
|
|
public partial class ControlDEVArmView : BaseDialog
|
|
{
|
|
public ControlDEVArmView()
|
|
{
|
|
InitializeComponent();
|
|
this.Loaded += ControlDEVArmView_Loaded;
|
|
this.Unloaded += ControlDEVArmView_Unloaded;
|
|
}
|
|
|
|
private void ControlDEVArmView_Unloaded(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void ControlDEVArmView_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
ControlDEVArmViewModule _vm = null;
|
|
private ControlDEVArmViewModule GetCurrentMv()
|
|
{
|
|
if (null == _vm)
|
|
{
|
|
_vm = this.DataContext as ControlDEVArmViewModule;
|
|
}
|
|
return _vm;
|
|
}
|
|
|
|
|
|
private void SafeStart_LostFocus(object sender, RoutedEventArgs e)
|
|
{
|
|
GetCurrentMv().OnSafeStartTextChangedCommand(((TextBox)sender)?.Text);
|
|
}
|
|
|
|
private void SafeEnd_LostFocus(object sender, RoutedEventArgs e)
|
|
{
|
|
GetCurrentMv().OnSafeEndTextChangedCommand(((TextBox)sender)?.Text);
|
|
}
|
|
|
|
private void AxisSpeed_LostFocus(object sender, RoutedEventArgs e)
|
|
{
|
|
GetCurrentMv().OnAxisSpeedTextChangedCommand(((TextBox)sender)?.Text);
|
|
}
|
|
private void HomePosition_LostFocus(object sender, RoutedEventArgs e)
|
|
{
|
|
GetCurrentMv().OnHomePositionTextChangedCommand(((TextBox)sender)?.Text);
|
|
}
|
|
private void HomeSpeed_LostFocus(object sender, RoutedEventArgs e)
|
|
{
|
|
GetCurrentMv().OnHomeSpeedTextChangedCommand(((TextBox)sender)?.Text);
|
|
}
|
|
private void MovePosition_LostFocus(object sender, RoutedEventArgs e)
|
|
{
|
|
GetCurrentMv().OnMovePositionTextChangedCommand(((TextBox)sender)?.Text);
|
|
}
|
|
private void MoveSpeed_LostFocus(object sender, RoutedEventArgs e)
|
|
{
|
|
GetCurrentMv().OnMoveSpeedTextChangedCommand(((TextBox)sender)?.Text);
|
|
}
|
|
private void JogForward_PreviewMouseUp(object sender, MouseButtonEventArgs e)
|
|
{
|
|
GetCurrentMv().OnJogForwardStop();
|
|
}
|
|
|
|
private void JogForward_PreviewMouseDown(object sender, MouseButtonEventArgs e)
|
|
{
|
|
GetCurrentMv().OnJogForwardStart();
|
|
}
|
|
|
|
private void JogBack_PreviewMouseUp(object sender, MouseButtonEventArgs e)
|
|
{
|
|
GetCurrentMv().OnJogBackStop();
|
|
}
|
|
|
|
private void JogBack_PreviewMouseDown(object sender, MouseButtonEventArgs e)
|
|
{
|
|
GetCurrentMv().OnJogBackStart();
|
|
}
|
|
}
|
|
}
|