private void btnkulupsil_Click(object sender, EventArgs e)
        {
            EntityKulup ent = new EntityKulup();

            ent.KulupID = Convert.ToInt16(txtKulupid.Text);
            BllKulup.Delete(ent.KulupID);
            MessageBox.Show("Kulüp Silindi.");
            KulupListele();
        }
        private void btnKulupKaydet_Click(object sender, EventArgs e)
        {
            EntityKulup ent = new EntityKulup();

            ent.KulupAd = txtKulupad.Text;
            BllKulup.Add(ent);
            MessageBox.Show("Kulüp Eklendi");
            KulupListele();
        }
        void KulupListele()
        {
            List <EntityKulup> KlpList = BllKulup.GetAll();

            cmbKulup.DisplayMember   = "KulupAd";
            cmbKulup.ValueMember     = "KulupID";
            cmbKulup.DataSource      = KlpList;
            dataGridView1.DataSource = KlpList;
            this.Text = "Kulüp Listesi";
        }
        private void btnKulupGuncelle_Click(object sender, EventArgs e)
        {
            EntityKulup ent = new EntityKulup();

            ent.KulupID = Convert.ToInt16(txtKulupid.Text);
            ent.KulupAd = txtKulupad.Text;
            BllKulup.Update(ent);
            MessageBox.Show("Kulüp Güncellendi");
            KulupListele();
        }