-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
49 lines (40 loc) · 1.33 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using Contest.model;
using Contest.repository;
using Contest_CS.repository;
using Contest_CS.service;
namespace Contest_CS
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
//IChildRepository childRepo = new ChildRepository();
//IChallengeRepository challengeRepo = new ChallengeRepository();
//childRepo.Save(new Child("Alin", 10));
//childRepo.Save(new Child("Andrei", 12));
//childRepo.Delete(2);
/*foreach(var element in childRepo.FindAll())
{
Trace.WriteLine(element);
}*/
IChildRepository childRepo = new ChildRepository();
IChallengeRepository challengeRepo = new ChallengeRepository();
IEmployeesRepository employeesRepo = new EmployeesRepository();
IEntriesRepository entriesRepo = new EntriesRepository(childRepo, challengeRepo);
Service service = new Service(childRepo, challengeRepo, employeesRepo, entriesRepo);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//Application.Run(new Login(service));
}
}
}