Пример #1
0
        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);
            }
        }
Пример #2
0
 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();
         }
     }
 }
Пример #3
0
 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);
         }
     }
 }