public FriendDetailViewModel(IFriendDataService dataService, IEventAggregator eventAggregator) { _dataService = dataService; _eventAggregator = eventAggregator; _eventAggregator.GetEvent <OpenFriendDetailViewEvent>().Subscribe(OnOpenFriendDetailViewAsync); SaveCommand = new DelegateCommand(OnSaveExecuteAsync, OnSaveCanExecute); }
public MainViewModel(IFriendDataService friendDataService) { Friends = new ObservableCollection <Friend>(); _friendDataService = friendDataService; AddCommand = new DelegateCommand <object>(FriendAddButton); }
public FriendDetailViewModel(IFriendDataService dataService, IEventAggregator eventAggregator) { _dataService = dataService; _eventAggregator = eventAggregator; _eventAggregator.GetEvent <OpenFriendDetailViewEvent>() .Subscribe(OnOpenFriendDetailView); }
public FriendDetailViewModel(IFriendDataService dataservice, IEventAggregator eventAggregator) { _dataservice = dataservice; _eventAggregator = eventAggregator; _eventAggregator.GetEvent <OpenFriendDetailViewEvent>().Subscribe(OnFreindSelectionChanged); SaveCommand = new DelegateCommand(onSaveExecute, OnSaveCanExecute); }
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); }
public MainViewModel(IFriendDataService friendDataService) { clientsCollection = new CollectionViewSource(); Friends = new ObservableCollection <Friend>(); _friendDataService = friendDataService; }
public MainViewModel(IFriendDataService friendDataService) { Friends = new ObservableCollection <Friend>(); _friendDataService = friendDataService; }
public MainViewModel(IFriendDataService friendDataService) { this._friendDataService = friendDataService; }
public FriendController(IFriendDataService friendDataService, IProfileDataService profileDataService) { _friendDataService = friendDataService; _profileDataService = profileDataService; }
public FriendController(IFriendDataService friendDataService) { _friendDataService = friendDataService; }