Пример #1
0
        private void frmIslem_Load(object sender, EventArgs e)
        {
            UrunKategoriBL urunKategoriBl = new UrunKategoriBL();

            this.cmbUrunKategori.ValueMember   = "KategoriID";
            this.cmbUrunKategori.DisplayMember = "KategoriAd";
            this.cmbUrunKategori.DataSource    = (object)urunKategoriBl.KategoriListesi();
            PersonelYetkiBL personelYetkiBl = new PersonelYetkiBL();

            this.cmbPrsnlYetki.ValueMember   = "YetkiID";
            this.cmbPrsnlYetki.DisplayMember = "YetkiAd";
            this.cmbPrsnlYetki.DataSource    = (object)personelYetkiBl.YetkiListesi();
        }
        private void frmPersonelListele_Load(object sender, EventArgs e)
        {
            PersonelBL prs = new PersonelBL();

            dt = prs.PersonelTablosu();
            dataGridView1.DataSource = dt;
            prs.Dispose();
            PersonelYetkiBL prsy = new PersonelYetkiBL();

            cmbYetki.DisplayMember = "YetkiAd";
            cmbYetki.ValueMember   = "ID";
            cmbYetki.DataSource    = prsy.YetkiListesi();
        }