|
@ -14,7 +14,7 @@ namespace BBWY.Client.Views.Purchase |
|
|
{ |
|
|
{ |
|
|
InitializeComponent(); |
|
|
InitializeComponent(); |
|
|
(this.DataContext as _1688PreviewPurchaseViewModel).SetData(orderId, skuItemCount, purchaseScheme, purchaseAccount, consignee); |
|
|
(this.DataContext as _1688PreviewPurchaseViewModel).SetData(orderId, skuItemCount, purchaseScheme, purchaseAccount, consignee); |
|
|
this.Loaded += _1688Purchase_Loaded; |
|
|
this.Loaded += _1688Purchase_Loaded; |
|
|
this.Unloaded += _1688Purchase_Unloaded; |
|
|
this.Unloaded += _1688Purchase_Unloaded; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -25,7 +25,7 @@ namespace BBWY.Client.Views.Purchase |
|
|
|
|
|
|
|
|
private void _1688Purchase_Loaded(object sender, System.Windows.RoutedEventArgs e) |
|
|
private void _1688Purchase_Loaded(object sender, System.Windows.RoutedEventArgs e) |
|
|
{ |
|
|
{ |
|
|
Messenger.Default.Register<object>(this, "OnlinePurchase_Close", (x) => this.Close()); |
|
|
Messenger.Default.Register<object>(this, "OnlinePurchase_Close", (x) => this.Dispatcher.Invoke(() => this.Close())); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|