Beispiel #1
0
        /// <summary>
        /// 新增学生操作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsmixzxs_Click(object sender, EventArgs e)
        {
            FrmAddstu frm = new FrmAddstu();

            frm.MdiParent = this;//设置frmaddstu窗口为当前窗口
            frm.Show();
        }
 /// <summary>
 /// 修改按钮
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tsmiselect_Click(object sender, EventArgs e)
 {
     if (dvgstu.SelectedRows.Count > 0)
     {
         FrmAddstu frm = new FrmAddstu();
         frm.EditStuno = dvgstu.SelectedCells[0].Value.ToString();
         frm.ShowDialog();
     }
 }
Beispiel #3
0
 /// <summary>
 /// 执行修改操作
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>1
 private void tsmiselect_Click(object sender, EventArgs e)
 {
     if (lvstulist.SelectedItems.Count > 0)
     {
         string    xh  = lvstulist.SelectedItems[0].SubItems[0].Text;
         FrmAddstu frm = new FrmAddstu();
         frm.EditStuno = xh;
         frm.ShowDialog();
     }
     else
     {
         MessageBox.Show("请选择您要进行修改的学员!", "温馨提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }