22 lines
564 B
C#
22 lines
564 B
C#
using System.Windows.Controls;
|
|
using YY.Admin.ViewModels.MixerMaterial;
|
|
|
|
namespace YY.Admin.Views.MixerMaterial;
|
|
|
|
public partial class MixerMaterialEditDialogView : UserControl
|
|
{
|
|
public MixerMaterialEditDialogView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void MajorCategoryComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
{
|
|
if (DataContext is MixerMaterialEditDialogViewModel vm && vm.MajorCategoryChangedCommand.CanExecute())
|
|
{
|
|
vm.MajorCategoryChangedCommand.Execute();
|
|
}
|
|
}
|
|
}
|
|
|