using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 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 DyeingComputer.Windows { /// /// InputBox.xaml 的交互逻辑 /// public partial class InputBox : Window { public InputBox() { InitializeComponent(); } public string InputValue { get { return Boxx.Text; } set { this.Boxx.Text = value; } } public event EventHandler Accept; private void YES_Click(object sender, RoutedEventArgs e) { if (Accept != null) { Accept(this, EventArgs.Empty); } this.Close(); //为了测试效果,点击Done以后先不关闭窗口 } private void NO_Click(object sender, RoutedEventArgs e) { this.Close(); //为了测试效果,点击Done以后先不关闭窗口 } } }