Esempio n. 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            PlayerDatabase    database          = new PlayerDatabase();
            FileRepository    fileRepository    = new FileRepository();
            RestApiRepository restApiRepository = new RestApiRepository();
            MFLRepository     repository        = new MFLRepository(restApiRepository, fileRepository);
            MFLController     controller        = new MFLController(repository, database);
            Manager           manager           = new Manager(controller);

            controller.Manager = manager;

            Application.Run(manager);
        }
Esempio n. 2
0
 public MFLController(IMFLRepository mflRepository, PlayerDatabase database)
 {
     _mflRepository = mflRepository;
     _database      = database;
 }