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.SealBox { /// <summary> /// SetSealBoxWindow.xaml 的交互逻辑 /// </summary> public partial class SetSealBoxWindow : BWindow { public SetSealBoxWindow() { InitializeComponent(); } public Action<int> 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; } //todo: 打印单子 if (SendBoxCount != null) SendBoxCount(boxCount); } } }