private void repoDepoAdi_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { FrmDepoSec form = new FrmDepoSec(gridViewSatisEkrani.GetFocusedRowCellValue(colStokKodu).ToString()); form.ShowDialog(); if (form.secildi) { gridViewSatisEkrani.SetFocusedRowCellValue(colDepoKodu, form.entity.DepoKodu); gridViewSatisEkrani.SetFocusedRowCellValue(colDepoAdi, form.entity.DepoAdi); } }
private void repositoryDepoSecim_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Index == 0) { FrmDepoSec form = new FrmDepoSec(Convert.ToInt32(gridStokHareket.GetFocusedRowCellValue(colStokId))); form.ShowDialog(); if (form.secildi) { gridStokHareket.SetFocusedRowCellValue(colDepoId, form.secilen.Id); context.ChangeTracker.DetectChanges(); } } }
private void repoDepo_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Index == 0) { FrmDepoSec frm = new FrmDepoSec(gridStokHareket.GetFocusedRowCellValue(colStokKodu).ToString()); frm.ShowDialog(); if (frm.secildi) { gridStokHareket.SetFocusedRowCellValue(colDepoKodu, frm.entity.DepoKodu); gridStokHareket.SetFocusedRowCellValue(colDepoAdi, frm.entity.DepoAdi); } } }