示例#1
0
        private void navBarBorclandir_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            int        id        = Convert.ToInt32(gridView1.GetFocusedRowCellValue("ID"));
            string     ad        = gridView1.GetFocusedRowCellValue("AdiSoyadi").ToString();
            int        rowhandle = gridView1.FocusedRowHandle;
            Borclandir frm       = new Borclandir(id, ad);

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                DataGetir(-1); //hepsini getir
            }
            gridView1.FocusedRowHandle = rowhandle;
        }
示例#2
0
 private void btnBorclandir_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         if (kisiid > 0)
         {
             Borclandir frm = new Borclandir(kisiid, txtAdSoyad.EditValue.ToString());
             frm.ShowDialog();
         }
     }
     catch (Exception hata)
     {
         throw;
     }
 }