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

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

            if (contractId == 0)
            {
                return;
            }
            if (SystemActive.UserId != dbContext.Contract.Find(contractId).CREATED_USER_ID)
            {
                XtraMessageBox.Show("Farklı kullanıcı kayıt müdahelesinde bulunamaz.", "Uyarı!");
                return;
            }
            def0008 frm = new def0008(contractId);

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