25 lines
669 B
C#
25 lines
669 B
C#
using System.Windows.Controls;
|
|
using System.Windows.Input;
|
|
using YY.Admin.ViewModels.RawMaterialEntry;
|
|
|
|
namespace YY.Admin.Views.RawMaterialEntry;
|
|
|
|
public partial class WarehouseAreaPickerDialogView : UserControl
|
|
{
|
|
public WarehouseAreaPickerDialogView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 双击数据行 = 确认选择,提升使用效率。
|
|
/// </summary>
|
|
private void WarehouseAreasGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
|
{
|
|
if (DataContext is WarehouseAreaPickerDialogViewModel vm && vm.ConfirmCommand.CanExecute())
|
|
{
|
|
vm.ConfirmCommand.Execute();
|
|
}
|
|
}
|
|
}
|