Beispiel #1
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));
        }
Beispiel #2
0
 public ServiceBilete(BileteRepo br, ServiceClienti sc, ServiceSpectacole ss)
 {
     this.repo     = br;
     this.serviceC = sc;
     this.serviceS = ss;
 }