Beispiel #1
0
        private void Btn_uyegiris_Click(object sender, EventArgs e)
        {
            Musteriler musteri = new Musteriler();

            musteri.TC    = txt_uyetc.Text;
            musteri.Sifre = txt_uyesifre.Text;

            if (txt_uyetc.Text == "A" && txt_uyesifre.Text == "1")
            {
                ArabaKayitcs a = new ArabaKayitcs();
                a.Show();
            }
            else if (db.Customers.Any(x => x.TC == musteri.TC && x.Sifre == musteri.Sifre))
            {
                KiralamaForm3 k = new KiralamaForm3();
                k.Show();
            }
            else
            {
                MessageBox.Show("Böyle bir üye yok");
            }

            txt_uyetc.Text    = string.Empty;
            txt_uyesifre.Text = string.Empty;
        }
Beispiel #2
0
        private void Btn_karackiralama_Click(object sender, EventArgs e)
        {
            KiralamaForm3 kkk = new KiralamaForm3();

            kkk.Show();
        }