ab56a9bcf7
SVN-Revision: r240
36 lines
806 B
C#
36 lines
806 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using DevExpress.XtraEditors;
|
|
|
|
namespace CsHospital
|
|
{
|
|
public partial class Tips : DevExpress.XtraEditors.XtraForm
|
|
{
|
|
public Tips(DataTable dt) {
|
|
InitializeComponent();
|
|
gridControl1.DataSource = dt;
|
|
}
|
|
|
|
|
|
private void GridView_KeyDown(object sender, KeyEventArgs e)
|
|
{
|
|
if (e.KeyCode == Keys.Enter)
|
|
{
|
|
btn_add_Click_1(sender, e);
|
|
|
|
}
|
|
}
|
|
|
|
private void btn_add_Click_1(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
}
|
|
} |