Esempio n. 1
0
        private void btnEkle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            BaglantiKarti frm = new BaglantiKarti(-1);

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                DataGetir(-1);
            }
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        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);
                }
            }
        }