public LogIn(ServiceUsers servUsers, ServiceBilete sb, ServiceClienti sc, ServiceSpectacole ss) { this.servClienti = sc; this.servSpectacole = ss; this.servBilete = sb; this.service = servUsers; InitializeComponent(); }
public void loadService(ServiceSpectacole servS) { this.servS = servS; bunifuCustomDataGrid1.DataSource = servS.GetAll(); for (int i = 0; i < servS.GetAll().Count; i++) { if (servS.GetAll().ElementAt(i).NrLocuri == 0) { bunifuCustomDataGrid1.Rows[i].DefaultCellStyle.BackColor = Color.Red; } } }
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); }
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)); }
public void loadService(ServiceSpectacole servS) { this.servS = servS; bunifuCustomDataGrid1.DataSource = servS.GetAll(); }