private void btnEkle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { BaglantiKarti frm = new BaglantiKarti(-1); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { DataGetir(-1); } }
private void btnBaglantiDuzenle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { int baglantiid = Convert.ToInt32(gvBaglanti.GetFocusedRowCellValue("ID")); BaglantiKarti frm = new BaglantiKarti(baglantiid); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { BaglantiDataGetir(-1); } }
private void gvBaglanti_DoubleClick(object sender, EventArgs e) { int baglantiid = Convert.ToInt32(gvBaglanti.GetFocusedRowCellValue("ID")); int rowhandle = gvBaglanti.FocusedRowHandle; BaglantiKarti frm = new BaglantiKarti(baglantiid); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { BaglantiDataGetir(-1); } gvBaglanti.FocusedRowHandle = rowhandle; }
private void gvBaglanti_DoubleClick(object sender, EventArgs e) { int id = Convert.ToInt32(gvBaglanti.GetFocusedRowCellValue("ID")); if (id > 0) { BaglantiKarti frm = new BaglantiKarti(id); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { DataGetir(-1); } } }