using System; using System.Windows; namespace GroupLine.App.View { /// /// MsgInput.xaml 的交互逻辑 /// public partial class MsgInput : Window { public MsgInput() { InitializeComponent(); } public string InputValue { get { return Box.Text; } set { this.Box.Text = value; } } public event EventHandler Accept; private void ButtonCmd_Click(object sender, RoutedEventArgs e) { if (Accept != null) { Accept(this, EventArgs.Empty); this.Close(); } } } }