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