Exemple #1
0
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            UserHelper.studentNo = Convert.ToInt32(dgvStudents.CurrentRow.Cells[0].Value);
            UserHelper.state     = 2;
            AddStudentForm addStudentForm = new AddStudentForm();

            addStudentForm.Show();
        }
Exemple #2
0
        /// <summary>
        /// 新建工具栏
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsbtnNewStudent_Click(object sender, EventArgs e)
        {
            UserHelper.state = 1;
            AddStudentForm addStudentForm = new AddStudentForm();

            addStudentForm.MdiParent = this;
            addStudentForm.Show();
        }