using BBWY.Client.Extensions; using BBWY.Client.Helpers; using BBWY.Client.Models.PackTask; using BBWY.Controls; using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using NPOI.XSSF.UserModel; using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing.Printing; using System.IO; using System.Printing; using System.Reflection; 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; namespace BBWY.Client.Views.SealBox { /// /// SetSealBoxWindow.xaml 的交互逻辑 /// public partial class SetSealBoxWindow : BWindow { public SetSealBoxWindow() { InitializeComponent(); } public Action SendBoxCount { get; set; } private void BButton_Click(object sender, RoutedEventArgs e) { int boxCount = 0; try { boxCount = Convert.ToInt32(tbSealBoxCount.Text); } catch (Exception) { MessageBox.Show("请输入数字!"); return; } if (SendBoxCount != null) SendBoxCount(boxCount); this.Close(); } } }