using System.Windows.Input; namespace BPASmartClient.MorkCL.View { /// /// EditRawMaterialView.xaml 的交互逻辑 /// public partial class EditRawMaterialView : Window { public EditRawMaterialView() { InitializeComponent(); this.br.MouseLeftButtonDown += (o, e) => { if (e.LeftButton == MouseButtonState.Pressed) this.DragMove(); }; ActionManage.GetInstance.Register((object b) => { this.DialogResult = (bool)b; this.Close(); }, "CloseEditRawMaterialView", true); } } }