using BBWY.Client.Models; using BBWY.Client.ViewModels.PackTask; using BBWY.Controls; using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace BBWY.Client.Views.PackTask { /// /// UpdatePurchaseTaskWindow.xaml 的交互逻辑 /// public partial class UpdatePurchaseTaskWindow : BWindow { public UpdatePurchaseTaskWindow(PackTaskModel obj, Action ReflashWindow = null) { InitializeComponent(); var updatePackTask = (this.DataContext as UpdatePurchaseTaskViewModel); var show = updatePackTask.SearchSku(obj); if (!show) { this.Close(); IsClosed = true; } if (ReflashWindow != null) updatePackTask.ReflashWindow = ReflashWindow; } public bool IsClosed { get; set; } = false; } }