Exemplo n.º 1
0
 public LogIn(ServiceUsers servUsers, ServiceBilete sb, ServiceClienti sc, ServiceSpectacole ss)
 {
     this.servClienti    = sc;
     this.servSpectacole = ss;
     this.servBilete     = sb;
     this.service        = servUsers;
     InitializeComponent();
 }
Exemplo n.º 2
0
        public Festivapp(ServiceClienti servC, ServiceBilete servB, ServiceSpectacole servS, LogIn login)
        {
            this.servBilete     = servB;
            this.servClienti    = servC;
            this.servSpectacole = servS;
            this.login          = login;

            InitializeComponent();
            shows1.BringToFront();
            shows1.loadService(servS);
            search1.loadService(servS);
            tickets1.loadService(servB, servS);
        }
Exemplo n.º 3
0
        static void Main()
        {
            Console.WriteLine("Configuration Settings for Festival {0}", GetConnectionStringByName("Festival"));
            IDictionary <string, string> props = new SortedList <string, string>();

            props.Add("ConnectionString", GetConnectionStringByName("Festival"));

            UsersRepo usersRepo = new UsersRepo(props);

            BileteRepo     bileteRepo     = new BileteRepo(props);
            ClientiRepo    ClientiRepo    = new ClientiRepo(props);
            SpectacoleRepo SpectacoleRepo = new SpectacoleRepo(props);

            ServiceUsers      servUsers   = new ServiceUsers(usersRepo);
            ServiceClienti    servClienti = new ServiceClienti(ClientiRepo);
            ServiceSpectacole servSpec    = new ServiceSpectacole(SpectacoleRepo);
            ServiceBilete     servBilete  = new ServiceBilete(bileteRepo, servClienti, servSpec);


            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new LogIn(servUsers, servBilete, servClienti, servSpec));
        }