コード例 #1
0
        private void frmUcusListe_Load(object sender, EventArgs e)
        {
            UcusBL ubl = new UcusBL();

            dt = ubl.UcusBilgileriTable3();
            grdUcusBilgileri.DataSource = dt;
            ubl.Dispose();

            UcakBL ucbl = new UcakBL();

            clmUcak.DataSource    = ucbl.UcakListesi();
            clmUcak.DisplayMember = "Ucak_Adi";
            clmUcak.ValueMember   = "Id_Ucak";
            ucbl.Dispose();

            HavayoluBL hbl = new HavayoluBL();

            clmHavayolu.DataSource    = hbl.HavayoluListesi();
            clmHavayolu.DisplayMember = "Havayolu_Adi";
            clmHavayolu.ValueMember   = "Id_Havayolu";
            hbl.Dispose();

            HavaalaniBL habl = new HavaalaniBL();

            clmKalkisYeri.DataSource    = habl.HavaalaniListesi();
            clmKalkisYeri.DisplayMember = "Yer_Adi";
            clmKalkisYeri.ValueMember   = "Id_Yer";

            clmVarisYeri.DataSource    = habl.HavaalaniListesi();
            clmVarisYeri.DisplayMember = "Yer_Adi";
            clmVarisYeri.ValueMember   = "Id_Yer";

            habl.Dispose();
        }
コード例 #2
0
        private void frmHavayoluEnvanterListele_Load(object sender, EventArgs e)
        {
            HavayoluBL hbl = new HavayoluBL();

            dt = hbl.HavayollariEnvanterTable();
            grdHavayoluEnvanter.DataSource = dt;

            clmHavayoluAdi.DataSource    = hbl.HavayoluListesi();
            clmHavayoluAdi.DisplayMember = "Havayolu_Adi";
            clmHavayoluAdi.ValueMember   = "Id_Havayolu";
            hbl.Dispose();

            UcakBL ubl = new UcakBL();

            clmUcakAdi.DataSource    = ubl.UcakListesi();
            clmUcakAdi.DisplayMember = "Ucak_Adi";
            clmUcakAdi.ValueMember   = "Id_Ucak";
            ubl.Dispose();
        }