Ejemplo n.º 1
0
        private void OnApplicationStartup(object sender, StartupEventArgs e)
        {
            CreateMappings();

            var settings = new ApplicationSettings();
            var taskService = new TaskServiceAdo(settings);
            var objectMapper = new MapperAutoMapper();
            controller = new TaskListController(taskService, objectMapper);
            MainWindow = new TaskListView(controller);
            MainWindow.Show();

            controller.OnLoad();
        }
Ejemplo n.º 2
0
        private void OnApplicationStartup(object sender, StartupEventArgs e)
        {
            CreateMappings();

            var settings     = new ApplicationSettings();
            var taskService  = new TaskServiceAdo();
            var objectMapper = new MapperAutoMapper();

            controller = new TaskListController(taskService, objectMapper, settings);
            MainWindow = new TaskListView(controller);
            MainWindow.Show();

            controller.OnLoad();
        }