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.
45 lines
998 B
45 lines
998 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace ICSSoft.Frame.APP
|
|
{
|
|
public partial class FormRtn : Form
|
|
{
|
|
public string Remark;
|
|
|
|
public FormRtn()
|
|
{
|
|
InitializeComponent();
|
|
Remark = "";
|
|
}
|
|
|
|
private void simpleButton1_Click(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
Remark = richTextBox1.Text;
|
|
}
|
|
catch { MessageBox.Show("数量应为正整数,格式有误!");
|
|
return;
|
|
}
|
|
this.DialogResult = DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
|
|
private void richTextBox1_KeyPress(object sender, KeyPressEventArgs e)
|
|
{
|
|
if (e.KeyChar == (Char)Keys.Enter)
|
|
{
|
|
simpleButton1_Click(null,null);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|