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(); }
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(); }