using System.Windows.Controls; using System.Windows.Input; using YY.Admin.ViewModels.WeightRecord; namespace YY.Admin.Views.WeightRecord; public partial class SupplierPickerDialogView : UserControl { public SupplierPickerDialogView() { InitializeComponent(); } private void SuppliersGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (DataContext is SupplierPickerDialogViewModel vm && vm.ConfirmCommand.CanExecute()) vm.ConfirmCommand.Execute(); } }