Exemple #1
0
        //****************************************************************************************************
        //修改
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            FrmEntityEdit frm = new FrmEntityEdit(Convert.ToInt32(grd.CurrentRow.Cells["id"].Value));

            if (frm.ShowDialog() == DialogResult.OK)
            {
                showData();
            }
        }
Exemple #2
0
        //****************************************************************************************************
        //添加
        private void btnInsert_Click(object sender, EventArgs e)
        {
            FrmEntityEdit frm = new FrmEntityEdit(0);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                showData();
            }
        }