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(); }
public blockDados() { InitializeComponent(); blockDB = new BlockRepo(); clienteDB = new ClienteRepo(); }