private void btnGoruntule_Click(object sender, EventArgs e)
        {
            SuresiDolanSeansSil();
            Genel.SeansByFilm = false;
            frmSeansSec frm = new frmSeansSec();

            frm.ShowDialog();
            seance = Genel.Service.Seance.SelectById(Genel.Selected_Seance_ID);
            if (seance != null)
            {
                Movie FilmBySeans  = Genel.Service.Movie.SelectById(seance.MovieId);
                Hall  SalonBySeans = Genel.Service.Hall.SelectById(seance.HallId);
                btnIptal.Visible      = true;
                btnKaydet.Visible     = true;
                btnSil.Visible        = true;
                btnSalonSec.Enabled   = true;
                kontrol               = true;
                lblFilmAdi.Text       = FilmBySeans.Movie_Name;
                lblSure.Text          = FilmBySeans.Movie_Duration_InMinute.ToString();
                lblTur.Text           = FilmBySeans.Movie_Type;
                lblSalonKodu.Text     = SalonBySeans.Hall_Code;
                lblSalonKapasite.Text = SalonBySeans.Seating_Capacity.ToString();

                string[] date = seance.Start_Time.ToString().Split(' ');
                string[] hour = date[1].Split(':');

                txtSaat.Text       = hour[0];
                txtdk.Text         = (Convert.ToInt32(hour[1]) + 10).ToString();
                dtpBaslangic.Value = seance.Start_Time;
            }
            else
            {
                Genel.Selected_Seance_ID = 0;
                Genel.Selected_Film_ID   = 0;
                Genel.Selected_Hall_Code = "";
                seance                = null;
                h                     = null;
                m                     = null;
                btnSil.Visible        = false;
                btnKaydet.Visible     = false;
                btnIptal.Visible      = false;
                btnSeansEkle.Visible  = false;
                lblFilmAdi.Text       = "";
                lblSure.Text          = "";
                lblTur.Text           = "";
                lblSalonKodu.Text     = "";
                lblSalonKapasite.Text = "";
                dtpBaslangic.Value    = DateTime.Now;
                txtdk.Clear();
                txtSaat.Clear();
                btnSalonSec.Enabled   = false;
                btnSalonIptal.Visible = false;
                txtdk.Enabled         = true;
                txtSaat.Enabled       = true;
                Genel.HallByDate      = false;
            }
        }
Exemple #2
0
        private void btnSeansSec_Click(object sender, EventArgs e)
        {
            SuresiDolanBiletSil();
            SuresiDolanSeansSil();
            frmSeansSec frm = new frmSeansSec();

            frm.ShowDialog();
            s = Genel.Service.Seance.SelectById(Genel.Selected_Seance_ID);
            if (s != null)
            {
                h = Genel.Service.Hall.SelectById(s.HallId);
                SalonGetir(h.Hall_Code);
                BiletKes();
            }
        }
Exemple #3
0
        private void btnFilmeGoreSeansSec_Click(object sender, EventArgs e)
        {
            SuresiDolanBiletSil();
            SuresiDolanSeansSil();
            frmFilmSec frm = new frmFilmSec();

            frm.ShowDialog();
            m = Genel.Service.Movie.SelectById(Genel.Selected_Film_ID);
            if (m != null)
            {
                Genel.SeansByFilm = true;
                frmSeansSec frmSeansSec = new frmSeansSec();
                frmSeansSec.ShowDialog();
                s = Genel.Service.Seance.SelectById(Genel.Selected_Seance_ID);
                if (s != null)
                {
                    h = Genel.Service.Hall.SelectById(s.HallId);
                    SalonGetir(h.Hall_Code);
                    Genel.SeansByFilm = false;
                    BiletKes();
                }
            }
        }