Ejemplo n.º 1
0
 public Form3(LoginService loginServ, ConcerteService concerteServ, Spectacol spect)
 {
     this.loginServ    = loginServ;
     this.concerteServ = concerteServ;
     this.spect        = spect;
     InitializeComponent();
 }
Ejemplo n.º 2
0
        static void Main()
        {
            SQLiteConnection    m_dbConnection = new SQLiteConnection("Data Source=/Users/Alex/IdeaProjects/Databases/FestivaluriDB.db;Version=3;");
            AngajatRepository   repoAngajat    = new AngajatRepository(m_dbConnection);
            BiletRepository     repoBilet      = new BiletRepository(m_dbConnection);
            SpectacolRepository repoSpectacol  = new SpectacolRepository(m_dbConnection);
            ArtistiRepository   repoArtist     = new ArtistiRepository(m_dbConnection);

            /*
             * var container = Config.Configure();
             *
             * using (var scope = container.BeginLifetimeScope())
             * {
             *  Angajat a = new Angajat("aaa", "hhh", "lll");
             *  var app = scope.Resolve<IAngajatRepository>();
             *  foreach(var x in app.findAll())
             *  {
             *      Console.WriteLine(x);
             *  }
             *  Console.ReadKey();
             * }*/

            LoginService    servLogin    = new LoginService(repoAngajat);
            ConcerteService servConcerte = new ConcerteService(repoBilet, repoSpectacol, repoArtist);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1(servLogin, servConcerte));
        }
Ejemplo n.º 3
0
 public Form1(LoginService serv, ConcerteService concerteServ)
 {
     this.serv         = serv;
     this.concerteServ = concerteServ;
     InitializeComponent();
 }
Ejemplo n.º 4
0
 public Form2(LoginService loginServ, ConcerteService concertServ)
 {
     this.loginServ    = loginServ;
     this.concerteServ = concertServ;
     InitializeComponent();
 }