Exemplo n.º 1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            def0012 frm = new def0012();

            frm.FormClosed += new FormClosedEventHandler(Form_Closed);
            frm.Show();
        }
Exemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int userRoleId = gvUserRole.GetNullableRowCellValue();

            if (userRoleId == 0)
            {
                return;
            }
            def0012 frm = new def0012(userRoleId);

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