Exemplo n.º 1
0
        private void navBarOdemeEkle_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            int       rowhandle = gridView1.FocusedRowHandle;
            OdemeEkle frm       = new OdemeEkle(kisiid, lblAdSoyad.Text, -1);

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                SiteDBEntities2 db    = new SiteDBEntities2();
                var             odeme = db.S_Odemeler(kisiid).OrderByDescending(c => c.VadeTarihi).ThenByDescending(m => m.ID).Where(c => c.IsDeleted == false).ToList();
                gridControl2.DataSource = odeme;
            }
            gridView1.FocusedRowHandle = rowhandle;
        }
Exemplo n.º 2
0
 private void btnOdemeEkle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         if (kisiid > 0)
         {
             OdemeEkle frm = new OdemeEkle(kisiid, txtAdSoyad.EditValue.ToString(), -1);
             frm.ShowDialog();
         }
     }
     catch (Exception hata)
     {
         throw;
     }
 }