添加项目文件。
This commit is contained in:
40
GroupLine.App/View/MsgInput.xaml.cs
Normal file
40
GroupLine.App/View/MsgInput.xaml.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Windows;
|
||||
|
||||
namespace GroupLine.App.View
|
||||
{
|
||||
/// <summary>
|
||||
/// MsgInput.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user