|
|
@ -23,15 +23,17 @@ namespace BBWY.Client.Views.SealBox |
|
|
|
/// </summary>
|
|
|
|
public partial class AddProductWindow : BWindow |
|
|
|
{ |
|
|
|
public AddProductWindow(PackTaskService packTaskService, ProductService productService) |
|
|
|
public AddProductWindow(PackTaskService packTaskService, ProductService productService, Action ReflashTask) |
|
|
|
{ |
|
|
|
this.packTaskService = packTaskService; |
|
|
|
this.productService = productService; |
|
|
|
this.ReflashTask = ReflashTask; |
|
|
|
InitializeComponent(); |
|
|
|
this.DataContext = this; |
|
|
|
} |
|
|
|
ProductService productService; |
|
|
|
PackTaskService packTaskService; |
|
|
|
Action ReflashTask; |
|
|
|
private int count; |
|
|
|
public int Count { get => count; set { Set(ref count, value); } } |
|
|
|
|
|
|
@ -66,6 +68,8 @@ namespace BBWY.Client.Views.SealBox |
|
|
|
} |
|
|
|
|
|
|
|
this.Close(); |
|
|
|
if (ReflashTask != null) |
|
|
|
ReflashTask(); |
|
|
|
} |
|
|
|
|
|
|
|
private void BButton_Click_1(object sender, RoutedEventArgs e) |
|
|
|