Пример #1
0
        private void btnEkle_Click(object sender, EventArgs e)
        {
            FrmKasaIslem frm = new FrmKasaIslem(new Entities.Tables.Kasa());

            frm.ShowDialog();
            if (frm.saved)
            {
                Guncelle();
            }
        }
Пример #2
0
        private void btnDuzenle_Click(object sender, EventArgs e)
        {
            secilen = gridView1.GetFocusedRowCellValue(colKasaKodu).ToString();
            FrmKasaIslem frm = new FrmKasaIslem(kasadal.GetByFilter(context, c => c.KasaKodu == secilen));

            frm.ShowDialog();
            if (frm.saved)
            {
                Guncelle();
            }
        }
Пример #3
0
        private void btnKopyala_Click(object sender, EventArgs e)
        {
            secilen = gridView1.GetFocusedRowCellValue(colKasaKodu).ToString();
            Entities.Tables.Kasa kasaEntity = new Entities.Tables.Kasa();
            kasaEntity          = kasadal.GetByFilter(context, c => c.KasaKodu == secilen);
            kasaEntity.Id       = -1;
            kasaEntity.KasaKodu = null;
            FrmKasaIslem frm = new FrmKasaIslem(kasaEntity);

            frm.ShowDialog();
            if (frm.saved)
            {
                Guncelle();
            }
        }