Esempio n. 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            ogrenciKayitDal kayit = new ogrenciKayitDal();

            kayit.Sil(textBox4);

            kayit.Goruntule(dataGridView1);
        }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            ogrenciKayitDal kayit = new ogrenciKayitDal();

            kayit.Ekle(textBox1, textBox2, textBox3);

            kayit.Goruntule(dataGridView1);
        }
Esempio n. 3
0
        public void z(TextBox a, TextBox b, TextBox c, TextBox d)
        {
            /*
             *  Ad
             *  Soyad
             *  Numara
             *  ID
             */

            var             yollanicak = new ArrayList();
            ogrenciKayitDal ogrenci    = new ogrenciKayitDal();

            if (!string.IsNullOrEmpty(d.Text))
            {
                yollanicak.Add(d.Text);
                OgrenciKayit alinan = ogrenci.GetOgrenciBilgleri(Convert.ToInt32(d.Text));

                if (!string.IsNullOrEmpty(a.Text))
                {
                    yollanicak.Add(a.Text);
                }
                else
                {
                    yollanicak.Add(alinan.OgrenciAdi);
                }

                if (!string.IsNullOrEmpty(b.Text))
                {
                    yollanicak.Add(b.Text);
                }
                else
                {
                    yollanicak.Add(alinan.OgrenciSoyad);
                }

                if (!string.IsNullOrEmpty(c.Text))
                {
                    yollanicak.Add(c.Text);
                }
                else
                {
                    yollanicak.Add(alinan.Numara);
                }

                ogrenci.Guncelle(yollanicak);
            }
            else
            {
                MessageBox.Show("Kitap No`sunu giriniz");
            }
        }