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(); } /// /// 双击数据行 = 确认选择,提升使用效率。 /// private void WarehouseAreasGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (DataContext is WarehouseAreaPickerDialogViewModel vm && vm.ConfirmCommand.CanExecute()) { vm.ConfirmCommand.Execute(); } } }