34 lines
936 B
C#
34 lines
936 B
C#
using Aurora;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Input;
|
|
|
|
namespace WeldingCommon.Views
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for UCLBADDevice.xaml
|
|
/// </summary>
|
|
public partial class UCLBADDevice : UserControl
|
|
{
|
|
UCLBADDeviceViewModel UCViewModel;
|
|
|
|
public UCLBADDevice(IAuroraEnvironment aurora, string deviceId1, string deviceId2)
|
|
{
|
|
InitializeComponent();
|
|
UCViewModel = new UCLBADDeviceViewModel(aurora, deviceId1, deviceId2);
|
|
this.DataContext = UCViewModel;
|
|
}
|
|
|
|
private void datagrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
{
|
|
int nRow = datagrid.SelectedIndex;
|
|
|
|
UCViewModel.UpdateLBADResultDetailData(nRow);
|
|
}
|
|
|
|
private void DataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
|
{
|
|
UCViewModel.SetBit();
|
|
}
|
|
}
|
|
}
|