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.
31 lines
1.1 KiB
31 lines
1.1 KiB
using BBWY.Client.Models;
|
|
using BBWY.Client.ViewModels;
|
|
using BBWY.Controls;
|
|
using GalaSoft.MvvmLight.Messaging;
|
|
|
|
namespace BBWY.Client.Views.Purchase
|
|
{
|
|
/// <summary>
|
|
/// _1688Purchase.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class _1688Purchase : BWindow
|
|
{
|
|
public _1688Purchase(string orderId, int skuItemCount, PurchaseScheme purchaseScheme, PurchaseAccount purchaseAccount, Consignee consignee)
|
|
{
|
|
InitializeComponent();
|
|
(this.DataContext as _1688PreviewPurchaseViewModel).SetData(orderId, skuItemCount, purchaseScheme, purchaseAccount, consignee);
|
|
this.Loaded += _1688Purchase_Loaded;
|
|
this.Unloaded += _1688Purchase_Unloaded;
|
|
}
|
|
|
|
private void _1688Purchase_Unloaded(object sender, System.Windows.RoutedEventArgs e)
|
|
{
|
|
Messenger.Default.Unregister(this);
|
|
}
|
|
|
|
private void _1688Purchase_Loaded(object sender, System.Windows.RoutedEventArgs e)
|
|
{
|
|
Messenger.Default.Register<object>(this, "OnlinePurchase_Close", (x) => this.Dispatcher.Invoke(() => this.Close()));
|
|
}
|
|
}
|
|
}
|
|
|