示例#1
0
 public PlatformWF(IPlatformPresenter presenter,
                   ITeamMemberListView teamMembersView,
                   ITodoListView todosView)
 {
     InitializeComponent();
     this.presenter      = presenter;
     this.teamMemberView = teamMembersView;
     this.todosView      = todosView;
     presenter.SetView(this);
 }
示例#2
0
        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;
        }