Exemplo n.º 1
0
 //giriş butonu karak yapısı
 private void button_gir_Click(object sender, EventArgs e)
 {
     if (textBox_secilengiris.Text == "Yönetici Girişi")
     {
         if ((textBox_kullaniciad.Text == "admin") && (textBox_sifre.Text == "123"))
         {
             Yonetici_Paneli yp = new Yonetici_Paneli();
             yp.Show();
         }
     }
     if (textBox_secilengiris.Text == "Resepsiyon Girişi")
     {
         if ((textBox_kullaniciad.Text == "vezne") && (textBox_sifre.Text == "123"))
         {
             Form2 op = new Form2();
             op.Show();
         }
     }
     if (textBox_secilengiris.Text == "Müşteri Girişi")
     {
         if ((textBox_kullaniciad.Text == "10100") && (textBox_sifre.Text == "123"))
         {
             Müşteri_Panel_101 mp = new Müşteri_Panel_101();
             mp.Show();
         }
     }
     if (textBox_secilengiris.Text == "Personel Girişi")
     {
         if ((textBox_kullaniciad.Text == "personel") && (textBox_sifre.Text == "123"))
         {
             Vale_İletişim vp = new Vale_İletişim();
             vp.Show();
         }
     }
 }
Exemplo n.º 2
0
        //aracımı hazırla
        private void button_musteripanel_arac_Click(object sender, EventArgs e)
        {
            Form3        frm3       = new Form3();
            StreamWriter talep_arac = new StreamWriter("Araçtalep.txt", true);

            //talep_arac.WriteLine(frm3.textBox9);
            talep_arac.WriteLine(DateTime.Now);
            talep_arac.WriteLine("34 AT 7632");
            talep_arac.Close();
            MessageBox.Show("Araç talebiniz iletildi");
            Vale_İletişim vl = new Vale_İletişim();

            vl.Show();
            this.Hide();
            MessageBox.Show("Araç talebi var");
        }