예제 #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);
            }
        }
예제 #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);
            }
        }
예제 #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;
        }
예제 #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);
                }
            }
        }