Пример #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            def0006 frm = new def0006();

            frm.FormClosed += new FormClosedEventHandler(Form_Closed);
            frm.Show();
        }
Пример #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int itemId = gvItem.GetNullableRowCellValue();

            if (itemId == 0)
            {
                return;
            }
            def0006 frm = new def0006(itemId);

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