public TaskListView(TaskListController controller)
        {
            InitializeComponent();

            //this.controller = controller;
            controller.OnLoad();
            this.taskListControllerBindingSource.DataSource = controller;
        }
Пример #2
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();
        }
 public TaskListView(TaskListController controller)
 {
     InitializeComponent();
     DataContext = controller;
 }