示例#1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            def0004 frm = new def0004();

            frm.FormClosed += new FormClosedEventHandler(Form_Closed);
            frm.Show();
        }
示例#2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int userId = gvUser.GetNullableRowCellValue();

            if (userId == 0)
            {
                return;
            }
            def0004 frm = new def0004(userId);

            frm.FormClosed += new FormClosedEventHandler(Form_Closed);
            frm.Show();
        }