Exemplo n.º 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();
        }
Exemplo n.º 2
0
        private void frmHavaalaniBul_Load(object sender, EventArgs e)
        {
            HavaalaniBL hy = new HavaalaniBL();

            cmbHavaalani.DisplayMember = "Yer_Adi";
            cmbHavaalani.ValueMember   = "Id_Yer";
            cmbHavaalani.DataSource    = hy.HavaalaniListesi();
        }
Exemplo n.º 3
0
        public void Form1_Load(object sender, EventArgs e)
        {
            HavayoluBL hy = new HavayoluBL();

            cmbHavayolu.DisplayMember = "Havayolu_Adi";
            cmbHavayolu.ValueMember   = "Id_Havayolu";
            cmbHavayolu.DataSource    = hy.HavayoluListesi();

            HavaalaniBL ha = new HavaalaniBL();

            cmbKalkis.DisplayMember = "Yer_Adi";
            cmbKalkis.ValueMember   = "Id_Yer";
            cmbKalkis.DataSource    = ha.HavaalaniListesi();

            cmbVaris.DisplayMember = "Yer_Adi";
            cmbVaris.ValueMember   = "Id_Yer";
            cmbVaris.DataSource    = ha.HavaalaniListesi();

            UcakBL uc = new UcakBL();

            cmbUcak.DisplayMember = "Ucak_Adi";
            cmbUcak.ValueMember   = "Id_Ucak";
            cmbUcak.DataSource    = uc.UcakListesi();
        }