步步为盈
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.

48 lines
1.2 KiB

2 years ago
using BBWY.Controls;
using NPOI.SS.Formula.Functions;
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
{
/// <summary>
/// SetCountWindow.xaml 的交互逻辑
/// </summary>
public partial class SetCountWindow : BWindow
{
public SetCountWindow()
{
InitializeComponent();
this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
}
/// <summary>
/// 委托设置数量
/// </summary>
public Action<int> SetCount { get; set; }
private void BButton_Click(object sender, RoutedEventArgs e)
{
try
{
var count = Convert.ToInt32(tbCount.Text);
SetCount(count);
this.Close();
}
catch
{
MessageBox.Show("请输入数字!");
}
}
}
}