public PlatformWF(IPlatformPresenter presenter, ITeamMemberListView teamMembersView, ITodoListView todosView) { InitializeComponent(); this.presenter = presenter; this.teamMemberView = teamMembersView; this.todosView = todosView; presenter.SetView(this); }
public TodoListViewModel(ITodoListView view, ITodoListService service) { _view = view; _service = service; Items = new ObservableCollection<Todo>(); AddNewItemCommand = new DelegateCommand(ExecuteAddNewItemCommand, CanExecuteAddNewItemCommand); DeleteItemCommand = new DelegateCommand<Todo>(ExecuteDeleteCommand); CompletedCommand = new DelegateCommand<Todo>(ExecuteCompletedCommand); _view.DataContext = this; }