예제 #1
0
        public void sorumluOlduguDairelerDoldur()
        {
            clbBinaYetkListesi.Items.Clear();
            tbl_YoneticiBina yoneticiBina = new tbl_YoneticiBina();
            int           ID2             = Convert.ToInt32(yonetici_idTextBox.Text);
            SqlDataReader dr = yoneticiBina.binaListele(ID2);

            while (dr.Read())
            {
                clbBinaYetkListesi.Items.Add(dr["bina_id"], dr["bina_adi"].ToString());
            }
        }
예제 #2
0
        private void binaListele()
        {
            clbBinaListesi.Items.Clear();
            tbl_YoneticiBina yoneticiBina = new tbl_YoneticiBina();
            SqlDataReader    dr           = yoneticiBina.binaListele();

            while (dr.Read())
            {
                string binaAdi = dr["bina_adi"].ToString();
                if (clbBinaYetkListesi.FindString(binaAdi) < 0)
                {
                    clbBinaListesi.Items.Add(dr["bina_id"], dr["bina_adi"].ToString());
                }
            }
        }