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.
|
|
|
using BBWY.Client.Models;
|
|
|
|
using BBWY.Controls;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Windows;
|
|
|
|
|
|
|
|
namespace BBWY.Client.Views.BatchPurchase
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// BatchPurchaseAddProductSku.xaml 的交互逻辑
|
|
|
|
/// </summary>
|
|
|
|
public partial class BatchPurchaseAddProductSku : BWindow
|
|
|
|
{
|
|
|
|
public IList<ProductSkuWithScheme> SelectedProductSkuWithSchemeList { get; private set; }
|
|
|
|
|
|
|
|
public BatchPurchaseAddProductSku()
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
this.Loaded += BatchPurchaseAddProductSku_Loaded;
|
|
|
|
this.Unloaded += BatchPurchaseAddProductSku_Unloaded;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void BatchPurchaseAddProductSku_Unloaded(object sender, RoutedEventArgs e)
|
|
|
|
{
|
|
|
|
GalaSoft.MvvmLight.Messaging.Messenger.Default.Unregister(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
private void BatchPurchaseAddProductSku_Loaded(object sender, RoutedEventArgs e)
|
|
|
|
{
|
|
|
|
GalaSoft.MvvmLight.Messaging.Messenger.Default.Register<List<ProductSkuWithScheme>>(this, "BatchPurchaseAddProductSkuSave", (list) =>
|
|
|
|
{
|
|
|
|
SelectedProductSkuWithSchemeList = list;
|
|
|
|
this.DialogResult = true;
|
|
|
|
this.Close();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|