private void new_toolStripMenuItem_Click(object sender, EventArgs e)
        {
            //学生信息详细界面
            DetailForm form = new DetailForm(new StudentInfo()
            {
                SerialNum = ControlHelper.CreateSerinalNum(), LastPayDate = DateTime.Today
            }, WindowsModel.AddNew);

            DetailForm.OnWindowClosed += OnWindowClosed;
            form.Show();
        }
        private void gridControl1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            StudentInfo stu = gridView1.GetRow(_selectionRow) as StudentInfo;

            if (stu == null)
            {
                XtraMessageBox.Show("所选信息无效,请刷新后重试", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }
            //学生信息详细界面
            DetailForm form = new DetailForm(stu, WindowsModel.Display);

            DetailForm.OnWindowClosed += OnWindowClosed;
            form.Show();
        }
        private void edit_toolStripMenuItem_Click(object sender, EventArgs e)
        {
            StudentInfo stu = gridView1.GetRow(_selectionRow) as StudentInfo;

            if (stu == null)
            {
                XtraMessageBox.Show("所选信息无效,请刷新后重试", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }
            //学生信息详细界面
            DetailForm form = new DetailForm(stu, WindowsModel.Modify);

            DetailForm.OnWindowClosed += OnWindowClosed;
            form.Show();
        }