示例#1
0
        /// <summary>
        /// 点击增加数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsmiAddData_Click(object sender, EventArgs e)
        {
            frmAddData fr = new frmAddData();

            //fr.MdiParent = this;
            fr.ShowDialog();
            fr.MdiParent = this;
        }
        public void btnChange_Click(object sender, EventArgs e)
        {
            studentname = this.dgvShow.SelectedRows[0].Cells[0].Value.ToString();
            //MessageBox.Show(studentname);
            frmAddData frm = new frmAddData(this);

            frm.type = "修改";
            frm.ShowDialog();
            //frm.MdiParent = this;
        }