示例#1
0
        private void YilanEkleme_Load(object sender, EventArgs e)
        {
            cbxEpidet.DataSource    = null;
            cbxEpidet.DisplayMember = "epidetAd";
            cbxEpidet.ValueMember   = "yilanEpidetID";
            cbxEpidet.DataSource    = _yilanEpidetService.GetAllYilanEpidetService();

            cbxCins.DataSource    = null;
            cbxCins.DisplayMember = "yilanCinsi";
            cbxCins.ValueMember   = "yilanCinsID";
            cbxCins.DataSource    = _yilanCinService.GetAllYilanCinService();

            cbxBesinler.DataSource    = null;
            cbxBesinler.DisplayMember = "besinAd";
            cbxBesinler.ValueMember   = "besinID";
            cbxBesinler.DataSource    = _besinlerService.GetAllBesinlerService();

            cbxİller.DataSource    = null;
            cbxİller.DisplayMember = "ilAd";
            cbxİller.ValueMember   = "ilID";
            cbxİller.DataSource    = _ilService.GetAllIlService();

            cbxRenkler.DataSource    = null;
            cbxRenkler.DisplayMember = "yilanRenk1";
            cbxRenkler.ValueMember   = "yilanRenkID";
            cbxRenkler.DataSource    = _yilanRenkService.GetAllYilanRenkService();

            cbxBiyotop.DataSource    = null;
            cbxBiyotop.DisplayMember = "biyotopAd";
            cbxBiyotop.ValueMember   = "biyotopID";
            cbxBiyotop.DataSource    = _biyotopService.GetAllBiyotopService();
        }
示例#2
0
 public void BesinListele()
 {
     dgvBesinlerListesi.DataSource = null;
     dgvBesinlerListesi.DataSource = _besinService.GetAllBesinlerService();
 }