Beispiel #1
0
        void AracListesi()
        {
            List <EntityAraclar> ArcLst = BLLAraclar.Listele();

            CmbArac.DisplayMember = "Plaka";
            CmbArac.ValueMember   = "Id";
            CmbArac.DataSource    = ArcLst;
        }
        void AracListesi()
        {
            List <EntityAraclar> ArcLst = BLLAraclar.Listele();

            dataGridView1.DataSource = ArcLst;
            CmbPlaka.DisplayMember   = "Plaka";
            CmbPlaka.ValueMember     = "Id";
            CmbPlaka.DataSource      = ArcLst;
        }
Beispiel #3
0
        void SigortaListesi()
        {
            List <EntityAraclar> ArcList = BLLAraclar.Listele();
            List <EntitySigorta> SgrtLst = BLLSigorta.Listele();

            dataGridView1.DataSource = SgrtLst;
            CmbPlaka.DisplayMember   = "Plaka";
            CmbPlaka.ValueMember     = "Id";
            CmbPlaka.DataSource      = ArcList;
            CmbPlkGncl.DisplayMember = "Plaka";
            CmbPlkGncl.ValueMember   = "Id";
            CmbPlkGncl.DataSource    = SgrtLst;
        }
Beispiel #4
0
        void KaskoListesi()
        {
            List <EntityAraclar> ArcList = BLLAraclar.Listele();
            List <EntityKasko>   KskLst  = BLLKasko.Listele();

            dataGridView1.DataSource = KskLst;
            CmbPlaka.DisplayMember   = "Plaka";
            CmbPlaka.ValueMember     = "Id";
            CmbPlaka.DataSource      = ArcList;
            CmbPlkGncl.DisplayMember = "Plaka";
            CmbPlkGncl.ValueMember   = "Id";
            CmbPlkGncl.DataSource    = KskLst;
        }
Beispiel #5
0
        void VizeListesi()
        {
            List <EntityAraclar> ArcList = BLLAraclar.Listele();
            List <EntityVize>    VizeLst = BLLVize.Listele();

            dataGridView1.DataSource = VizeLst;
            CmbPlaka.DisplayMember   = "Plaka";
            CmbPlaka.ValueMember     = "Id";
            CmbPlaka.DataSource      = ArcList;
            CmbPlkGncl.DisplayMember = "Plaka";
            CmbPlkGncl.ValueMember   = "Id";
            CmbPlkGncl.DataSource    = VizeLst;
        }
Beispiel #6
0
        void CezaListesi()
        {
            List <EntityAraclar> ArcList = BLLAraclar.Listele();
            List <EntityCeza>    CezaLst = BLLCeza.Listele();

            dataGridView1.DataSource = CezaLst;
            CmbPlaka.DisplayMember   = "Plaka";
            CmbPlaka.ValueMember     = "Id";
            CmbPlaka.DataSource      = ArcList;
            CmbPlkGncl.DisplayMember = "Plaka";
            CmbPlkGncl.ValueMember   = "Id";
            CmbPlkGncl.DataSource    = CezaLst;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            EntityAraclar ent = new EntityAraclar();

            ent.Plaka = TxtPlaka.Text;
            ent.Marka = TxtMarka.Text;
            ent.Model = TxtModel.Text;
            ent.Renk  = TxtRenk.Text;
            ent.Km    = Convert.ToInt32(TxtKm.Text);
            ent.Vites = CmbVites.Text;
            ent.Id    = Convert.ToInt32(CmbPlaka.SelectedValue);
            BLLAraclar.Guncelle(ent);
            MessageBox.Show("Arac Guncelleme Islemi Basari Ile Sonuclandi");
            AracListesi();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            EntityAraclar ent = new EntityAraclar();

            ent.Plaka = TxtPlaka.Text;
            ent.Marka = TxtMarka.Text;
            ent.Model = TxtModel.Text;
            ent.Renk  = TxtRenk.Text;
            ent.Km    = Convert.ToInt32(TxtKm.Text);
            ent.Vites = CmbVites.Text;
            BLLAraclar.Ekle(ent);
            MessageBox.Show("Arac Ekleme Islemi Basari Ile Sonuclandi");
            this.Close();
            Araclar goster = new Araclar();

            goster.Show();
        }
Beispiel #9
0
        void AracListesi()
        {
            List <EntityAraclar> ArcLst = BLLAraclar.Listele();

            dataGridView1.DataSource = ArcLst;
        }