Пример #1
0
        private void frmmusterilistele_Load(object sender, EventArgs e)
        {
            MusteriBL mbl = new MusteriBL();

            dt = mbl.MusteriListe();
            datagridmusteriliste.DataSource = dt;
            mbl.Dispose();
        }
Пример #2
0
        private void frmsatislar_Load(object sender, EventArgs e)
        {
            MusteriBL mbl = new MusteriBL();
            UrunBL    ubl = new UrunBL();

            int[] Satisadet = { 1, 2, 3, 4, 5 };
            cmbxadet.DataSource       = Satisadet;
            cmbxurun.DisplayMember    = "Urunadi";
            cmbxurun.ValueMember      = "UrunId";
            cmbxurun.DataSource       = ubl.UrunListesi();
            cmbxmusteri.DisplayMember = "Musteriad";
            cmbxmusteri.ValueMember   = "MusteriId";
            cmbxmusteri.DataSource    = mbl.MusteriListe();
            mbl.Dispose();
            ubl.Dispose();
        }