예제 #1
0
 public FriendDetailViewModel(IFriendDataService dataService, IEventAggregator eventAggregator)
 {
     _dataService     = dataService;
     _eventAggregator = eventAggregator;
     _eventAggregator.GetEvent <OpenFriendDetailViewEvent>().Subscribe(OnOpenFriendDetailViewAsync);
     SaveCommand = new DelegateCommand(OnSaveExecuteAsync, OnSaveCanExecute);
 }
예제 #2
0
        public MainViewModel(IFriendDataService friendDataService)
        {
            Friends            = new ObservableCollection <Friend>();
            _friendDataService = friendDataService;

            AddCommand = new DelegateCommand <object>(FriendAddButton);
        }
예제 #3
0
 public FriendDetailViewModel(IFriendDataService dataService, IEventAggregator eventAggregator)
 {
     _dataService     = dataService;
     _eventAggregator = eventAggregator;
     _eventAggregator.GetEvent <OpenFriendDetailViewEvent>()
     .Subscribe(OnOpenFriendDetailView);
 }
예제 #4
0
 public FriendDetailViewModel(IFriendDataService dataservice, IEventAggregator eventAggregator)
 {
     _dataservice     = dataservice;
     _eventAggregator = eventAggregator;
     _eventAggregator.GetEvent <OpenFriendDetailViewEvent>().Subscribe(OnFreindSelectionChanged);
     SaveCommand = new DelegateCommand(onSaveExecute, OnSaveCanExecute);
 }
예제 #5
0
 public FriendDetailViewModel(IFriendDataService friendDataService,
                              IEventAggregator eventAggregator)
 {
     this.friendDataService = friendDataService;
     this.eventAggregator   = eventAggregator;
     eventAggregator.GetEvent <OpenFriendDetailViewEvent>()
     .Subscribe(OnOpenFriendDetailView);
 }
 public FriendDetailsViewModel(IFriendDataService friendDataService,
                               IEventAggregator eventAggregator)
 {
     this.friendDataService = friendDataService;
     this.eventAggregator   = eventAggregator;
     this.eventAggregator.GetEvent <OpenUpFriendDetailsViewEvent>()
     .Subscribe(OnOpenFriendDetailsView);
     this.SaveCommand = new DelegateCommand(OnSaveExecute, OnSaveCanExecute);
 }
예제 #7
0
 public MainViewModel(IFriendDataService friendDataService)
 {
     clientsCollection  = new CollectionViewSource();
     Friends            = new ObservableCollection <Friend>();
     _friendDataService = friendDataService;
 }
예제 #8
0
 public MainViewModel(IFriendDataService friendDataService)
 {
     Friends            = new ObservableCollection <Friend>();
     _friendDataService = friendDataService;
 }
예제 #9
0
 public MainViewModel(IFriendDataService friendDataService)
 {
     this._friendDataService = friendDataService;
 }
 public FriendController(IFriendDataService friendDataService, IProfileDataService profileDataService)
 {
     _friendDataService = friendDataService;
     _profileDataService = profileDataService;
 }
예제 #11
0
 public FriendController(IFriendDataService friendDataService)
 {
     _friendDataService = friendDataService;
 }