private void btnNew_Click(object sender, EventArgs e) { prj0002 frm = new prj0002(); frm.FormClosed += new FormClosedEventHandler(Form_Closed); frm.Show(); }
private void btnEdit_Click(object sender, EventArgs e) { int projectId = gvProject.GetNullableRowCellValue(); if (projectId == 0) { return; } if (SystemActive.UserId != dbContext.Project.Find(projectId).CREATED_USER_ID) { XtraMessageBox.Show("Farklı kullanıcı kayıt müdahelesinde bulunamaz.", "Uyarı!"); return; } prj0002 frm = new prj0002(projectId); frm.FormClosed += new FormClosedEventHandler(Form_Closed); frm.Show(); }