You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using Aucma.Core.PalletizCX1.Common;
|
|
using Aucma.Core.PalletizCX1.ViewModels;
|
|
using CommunityToolkit.Mvvm.Messaging;
|
|
using System.Windows;
|
|
using System.Windows.Input;
|
|
|
|
namespace Aucma.Core.PalletizCX1.Views
|
|
{
|
|
/// <summary>
|
|
/// SplitPlanView.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class SplitPlanView : Window
|
|
{
|
|
private SplitPlanViewModel planInfoEditViewModel = new SplitPlanViewModel();
|
|
|
|
public SplitPlanView()
|
|
{
|
|
InitializeComponent();
|
|
this.DataContext = planInfoEditViewModel;
|
|
//WeakReferenceMessenger.Default.Register<object>(this,Recive);//消息通知
|
|
}
|
|
|
|
private void Recive(object recipient, object message)
|
|
{
|
|
this.Close();
|
|
}
|
|
|
|
private void dgvMH_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
|
{
|
|
planInfoEditViewModel.MouseClick(sender);
|
|
}
|
|
|
|
private void queryParam_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)
|
|
{
|
|
CommHelper.OpenOsk();
|
|
}
|
|
}
|
|
}
|