Exemple #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            def0002 frm = new def0002();

            frm.FormClosed += new FormClosedEventHandler(Form_Closed);
            frm.Show();
        }
Exemple #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int companyId = gvCompany.GetNullableRowCellValue();

            if (companyId == 0)
            {
                return;
            }
            def0002 frm = new def0002(companyId);

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