Exemple #1
0
        private void aracbtn_sil_Click(object sender, EventArgs e)
        {
            Araclar arac = new Araclar();

            arac.Arac_id = id;
            arac.Sil();

            Form1_Load(sender, e);

            MessageBox.Show("SİLİNDİ");
        }
Exemple #2
0
        //----------ARACLAR--------------//

        private void button1_Click(object sender, EventArgs e)
        {
            Araclar arac = new Araclar();

            arac.Arac_plaka = tb_plaka.Text;
            arac.Renk       = tb_renk.Text;
            arac.Model      = tb_model.Text;
            arac.Yil        = tb_yil.Text;
            arac.Ekle();

            Form1_Load(sender, e);

            MessageBox.Show("EKLENDİ");
        }
Exemple #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Araclar   arac        = new Araclar();
            DataTable tbl_araclar = arac.Tbl_Araclar();

            Musteriler musteri        = new Musteriler();
            DataTable  tbl_musteriler = musteri.Tbl_Musteriler();

            Hizmetler hizmet        = new Hizmetler();
            DataTable tbl_hizmetler = hizmet.Tbl_Hizmetler();

            Abonelik  abon         = new Abonelik();
            DataTable tbl_abonelik = abon.Tbl_Abonelik();

            data_Araclar.DataSource     = tbl_araclar;
            data_Musteriler.DataSource  = tbl_musteriler;
            data_Hizmetler.DataSource   = tbl_hizmetler;
            data_Abonelikler.DataSource = tbl_abonelik;

            data_H_arac.DataSource    = tbl_araclar;
            data_H_musteri.DataSource = tbl_musteriler;
        }