Beispiel #1
0
        public void doldur()//kullanıcı tablosunu doldurur
        {
            DataTable tb    = new DataTable();
            string    cumle = "Select * from musteri order by id desc";
            baglanti  bag   = new baglanti();

            tb = bag.tablogetir(cumle);
            dataGridView1.DataSource = tb;
        }
Beispiel #2
0
        public void Ara()
        {
            DataTable tb    = new DataTable();
            string    cumle = "Select * from musteri where adsoyad like '%" + txtAdAra.Text + "%' order by id desc";
            baglanti  bag   = new baglanti();

            tb = bag.tablogetir(cumle);
            dataGridView1.DataSource = tb;
        }
Beispiel #3
0
        public void doldur()
        {
            DataTable tb    = new DataTable();
            string    cumle = "Select * from besin";
            baglanti  bag   = new baglanti();

            tb = bag.tablogetir(cumle);
            dataGridView1.DataSource = tb;
        }
Beispiel #4
0
 void BesinDoldur()//besin tablosunu dolurur
 {
     try
     {
         string    cumle = "Select * from besin";
         baglanti  bag   = new baglanti();
         DataTable tb    = new DataTable();
         tb = bag.tablogetir(cumle);
         dataGriedBesin.DataSource = tb;
     }
     catch (Exception hata)
     {
         MessageBox.Show(hata.Message);
     }
 }