コード例 #1
0
        public SalaForm()
        {
            InitializeComponent();
            Random rnd = new Random();

            idSala = rnd.Next(1, 3);
            Cinemas Cinema = Session.GetCinema();

            cinemaNome = Cinema.Nome;
            Salas currentSala = new Salas(idSala, Cinema.Id);

            filmeTitulo  = Session.GetFilme().Titulo;
            horarioSelec = Session.Horario;
            ingressoDB   = new IngressosRepo();
            cadeirasDB   = new CadeirasRepo();
        }
コード例 #2
0
ファイル: PagoConfirmForm.cs プロジェクト: a2pr/cinemaPIM
 public PagoConfirmForm()
 {
     InitializeComponent();
     usuariosDB     = new UsuariosRepo();
     textBox1.Text  = usuariosDB.getUserName(Session.GetClientes().getUsuarioId());
     textBox2.Text  = Session.GetFilme().Titulo;
     textBox3.Text  = Session.GetCinema().Nome;
     textBox4.Text  = Session.Horario;
     textBox5.Text  = Session.getCarrinho().IngresosSelec.Count().ToString();
     textBox6.Text  = Convert.ToString(Session.getCarrinho().IngresosSelec.Count() * 15); //this should be refactor
     pagamentoDB    = new PagamentoRepo();
     cadeiraDB      = new CadeirasRepo();
     orderDB        = new OrderRepo();
     ingressoDB     = new IngressosRepo();
     pimCoinTransDB = new PimCoinTransRepo();
     blockRepoDB    = new BlockRepo();
 }