private void repositoryItemButtonEdit1_Click(object sender, EventArgs e) { int currentRuleId = SimpleApplicationBase.Toolkit.Helpers.GetValueFromObject <int>(gridView1.GetFocusedRowCellValue("Id")); frm_Kurallar krl = new frm_Kurallar(this); krl.CurrentRuleId = currentRuleId; krl.ShowDialog(); }
private void btnGuncelle_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { int currentRuleId = SimpleApplicationBase.Toolkit.Helpers.GetValueFromObject <int>(gridViewRules.GetFocusedRowCellValue("Id")); frm_Kurallar krl = new frm_Kurallar(this); krl.CurrentRuleId = currentRuleId; krl.ShowDialog(); }