Ejemplo n.º 1
0
        void Doldur()
        {
            db = new KutuphaneEntities1();
            List <TurTablo> list = db.TurTabloes.ToList();

            dataGridView1.Rows.Clear();
            int k = 0;

            foreach (var a in list)    // datagridview1 e 2 adet sütunu yazdırma
            {
                dataGridView1.Rows.Add();
                dataGridView1.Rows[k].Cells[0].Value = a.turno;
                dataGridView1.Rows[k].Cells[1].Value = a.turad;
                k++;
            }
        }
        void Doldur()
        {
            db = new KutuphaneEntities1();
            List <IslemTablo> list = db.IslemTabloes.ToList();

            dataGridView1.Rows.Clear();
            int k = 0;

            foreach (var a in list)    // datagridview1 e sütunu yazdırma
            {
                dataGridView1.Rows.Add();
                dataGridView1.Rows[k].Cells[0].Value = a.islemno;
                dataGridView1.Rows[k].Cells[1].Value = a.ogrno;
                dataGridView1.Rows[k].Cells[2].Value = a.kitapno;
                dataGridView1.Rows[k].Cells[3].Value = a.atarih;
                dataGridView1.Rows[k].Cells[4].Value = a.vtarih;
                k++;
            }
        }
Ejemplo n.º 3
0
        void Doldur()
        {
            db = new KutuphaneEntities1();
            List <OgrenciTablo> list = db.OgrenciTabloes.ToList();

            dataGridView1.Rows.Clear();
            int k = 0;

            foreach (var a in list)    // datagridview1 e 2 adet sütunu yazdırma
            {
                dataGridView1.Rows.Add();
                dataGridView1.Rows[k].Cells[0].Value = a.ogrno;
                dataGridView1.Rows[k].Cells[1].Value = a.ograd;
                dataGridView1.Rows[k].Cells[2].Value = a.ogrsoyad;
                dataGridView1.Rows[k].Cells[3].Value = a.cinsiyet;
                dataGridView1.Rows[k].Cells[4].Value = a.dtarih;
                dataGridView1.Rows[k].Cells[5].Value = a.sinif;
                k++;
            }
        }
        void Doldur()
        {
            db = new KutuphaneEntities1();
            List <kitapTablo> list = db.kitapTabloes.ToList();

            dataGridView1.Rows.Clear();
            int k = 0;

            foreach (var a in list)    // datagridview1 e 2 adet sütunu yazdırma
            {
                dataGridView1.Rows.Add();
                dataGridView1.Rows[k].Cells[0].Value = a.kitapno;
                dataGridView1.Rows[k].Cells[1].Value = a.isbnno;
                dataGridView1.Rows[k].Cells[2].Value = a.kitapadi;
                dataGridView1.Rows[k].Cells[3].Value = a.yazarno;
                dataGridView1.Rows[k].Cells[4].Value = a.turno;
                dataGridView1.Rows[k].Cells[5].Value = a.sayfasayisi;
                dataGridView1.Rows[k].Cells[6].Value = a.puan;
                k++;
            }
        }