コード例 #1
0
 public AddEditPageViewModel(IFileStoringService fileStoringService, IContactRepositoryService contactRepositoryService)
 {
     repositoryService = contactRepositoryService;
     storingService    = fileStoringService;
     _goBackSaved      = new DelegateCommand(GoBackSavedExecute);
     _goBackUnsaved    = new DelegateCommand(GoBackUnsavedExecute);
     _removeImage      = new DelegateCommand(RemoveImageExecute, CanRemoveImageExecute);
     IsEnabled         = false;
 }
コード例 #2
0
 public MasterDetailPageViewModel(IFileStoringService fileStoringService, IContactRepositoryService contactRepositoryService)
 {
     _contactRepository    = contactRepositoryService;
     _storingService       = fileStoringService;
     _addContact           = new DelegateCommand(AddExecute);
     _makeFavoriteCommand  = new DelegateCommand(MakeFavoriteExecute, CanMakeFavoriteExcute);
     _deleteContactCommand = new DelegateCommand(DeleteExecute, CanDeleteExecute);
     _goToSettingsCommand  = new DelegateCommand(GoToSettingsExecute);
     _editContactCommand   = new DelegateCommand(ExecuteEdit, CanEditExecute);
 }
コード例 #3
0
 public ContactsController(IContactRepositoryService repositoryService)
 {
     _repositoryService = repositoryService;
 }
コード例 #4
0
 public FavoritePageViewModel(IContactRepositoryService contactRepository, IDialogService dialogService)
 {
     this.contactRepository = contactRepository;
     this.dialogService     = dialogService;
     _showContentDialog     = new DelegateCommand <Models.Contacts>(ExecuteShowContentDialog);
 }
コード例 #5
0
 public ContactContentDialogViewModel(IContactRepositoryService repositoryService)
 {
     converter = new IdToImageConverter();
     this.repositoryService = repositoryService;
 }