Ejemplo n.º 1
0
        private void FormBilet_Load(object sender, EventArgs e)
        {
            #region Kullanıcı Bilgileri
            FormLogin formLogin = new FormLogin();
            kullanici = FormLogin.Username;
            #endregion
            #region Salondan gelen bilgiler
            txtAd.Text       = s.SeyirciAd;
            txtSoyad.Text    = s.SeyirciSoyad;
            txtTelefon.Text  = s.SeyirciTelefon;
            txtAdres.Text    = s.SeyirciAdres;
            txtSalon.Text    = gosterim.Salon.SalonAD;
            txtSeans.Text    = gosterim.Seans.SeansAD.ToString();
            txtBiletTur.Text = _uow.GetRepo <BiletTuru>().GetById(biletTur).BiletTuru1;
            txtFilmAd.Text   = filmAd;
            txtTarih.Text    = DateTime.Now.ToShortDateString();


            int koltukAdet = koltuklar.Count();
            foreach (var koltuk in koltuklar)
            {
                txtKoltuklar.Text += koltuk.ToString() + " ";
            }
            #endregion
            #region Bilet Fiyat Hesabı
            if (txtBiletTur.Text == "Öğrenci")
            {
                txtToplam.Text = (koltukAdet * 6).ToString();
            }
            else if (txtBiletTur.Text == "Tam")
            {
                txtToplam.Text = (koltukAdet * 10).ToString();
            }
            else
            {
                txtToplam.Text = (koltukAdet * 7).ToString();
            }
            #endregion
        }
Ejemplo n.º 2
0
        private void FormParent_FormClosing(object sender, FormClosingEventArgs e)
        {
            FormLogin frm = new FormLogin();

            frm.Show();
        }