You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
869 B
32 lines
869 B
3 years ago
|
using BBWY.Controls;
|
||
|
using System;
|
||
|
using System.Windows;
|
||
|
using GalaSoft.MvvmLight.Messaging;
|
||
|
namespace BBWY.Client.Views.Ware
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// BindingPurchaseProduct.xaml 的交互逻辑
|
||
|
/// </summary>
|
||
|
public partial class BindingPurchaseProduct : BWindow
|
||
|
{
|
||
|
public BindingPurchaseProduct()
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
Messenger.Default.Register<bool>(this, "BindingPurchaseProduct_Close", (x) =>
|
||
|
{
|
||
|
this.Dispatcher.Invoke(() => {
|
||
|
this.DialogResult = x;
|
||
|
this.Close();
|
||
|
});
|
||
|
});
|
||
|
|
||
|
this.Unloaded += BindingPurchaseProduct_Unloaded;
|
||
|
}
|
||
|
|
||
|
private void BindingPurchaseProduct_Unloaded(object sender, RoutedEventArgs e)
|
||
|
{
|
||
|
Messenger.Default.Unregister(this);
|
||
|
}
|
||
|
}
|
||
|
}
|