Пример #1
0
        public static void Main()
        {
            FormFactory formFactory = new FormFactory();

            MainController mainController = new MainController(formFactory,
                                                               ClientDebtRepository.GetInstance(), ClientRepository.GetInstance(),
                                                               ExerciseRepository.GetInstance(), TrainingGroupRepository.GetInstance(),
                                                               TrainingPeriodRepository.GetInstance(), TrainingRepository.GetInstance());

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm(mainController));
        }