Пример #1
0
        public NewPostViewModel(IFindierService findierService, IInsightsService insightsService)
        {
            _findierService  = findierService;
            _insightsService = insightsService;

            PublishCommand = new DelegateCommand(PublishExecute);
        }
Пример #2
0
 public LibraryMatchingService(ILibraryService libraryService, IMatchEngineService matchEngineService,
                               IInsightsService insightsService, IDownloadService downloadService)
 {
     _libraryService     = libraryService;
     _matchEngineService = matchEngineService;
     _insightsService    = insightsService;
     _downloadService    = downloadService;
 }
Пример #3
0
 public LibraryMatchingService(ILibraryService libraryService, IMatchEngineService matchEngineService,
     IInsightsService insightsService, IDownloadService downloadService)
 {
     _libraryService = libraryService;
     _matchEngineService = matchEngineService;
     _insightsService = insightsService;
     _downloadService = downloadService;
 }
Пример #4
0
        public NavigationService(Frame frame, ISettingsUtility settingsUtility, IInsightsService insightsService)
        {
            _settingsUtility   = settingsUtility;
            _insightsService   = insightsService;
            _frame             = new NavigationFacade(frame);
            _frame.Navigating += (s, e) => NavigatedFrom(false);

            _currentView = SystemNavigationManager.GetForCurrentView();
        }
Пример #5
0
        public NavigationService(Frame frame, ISettingsUtility settingsUtility, IInsightsService insightsService)
        {
            _settingsUtility = settingsUtility;
            _insightsService = insightsService;
            _frame = new NavigationFacade(frame);
            _frame.Navigating += (s, e) => NavigatedFrom(false);

            _currentView = SystemNavigationManager.GetForCurrentView();
        }
Пример #6
0
 public TrackSaveService(
     ILibraryService libraryService,
     IConverter <WebSong, Track> webSongConverter,
     ILibraryMatchingService matchingService,
     IInsightsService insightsService,
     IStorageUtility storageUtility,
     IDownloadService downloadService)
 {
     _libraryService   = libraryService;
     _webSongConverter = webSongConverter;
     _matchingService  = matchingService;
     _insightsService  = insightsService;
     _storageUtility   = storageUtility;
     _downloadService  = downloadService;
 }
Пример #7
0
 public TrackSaveService(
     ILibraryService libraryService,
     IConverter<WebSong, Track> webSongConverter,
     ILibraryMatchingService matchingService,
     IInsightsService insightsService,
     IStorageUtility storageUtility,
     IDownloadService downloadService)
 {
     _libraryService = libraryService;
     _webSongConverter = webSongConverter;
     _matchingService = matchingService;
     _insightsService = insightsService;
     _storageUtility = storageUtility;
     _downloadService = downloadService;
 }
Пример #8
0
        public PostViewModel(IFindierService findierService, IInsightsService insightsService)
        {
            _findierService  = findierService;
            _insightsService = insightsService;

            CallCommand       = new DelegateCommand(CallExecute);
            TextCommand       = new DelegateCommand(TextExecute);
            EmailCommand      = new DelegateCommand(EmailExecute);
            NewCommentCommand = new DelegateCommand(NewCommentExecute);
            EditCommand       = new DelegateCommand(EditExecute);
            DeleteCommand     = new DelegateCommand(DeleteExecute);

            if (IsInDesignMode)
            {
                CanEdit = true;
                OnNavigatedTo(null, NavigationMode.New, new Dictionary <string, object>());
            }
        }
Пример #9
0
        public EditPostViewModel(IFindierService findierService, IInsightsService insightsService)
        {
            _findierService  = findierService;
            _insightsService = insightsService;

            EditCommand = new DelegateCommand(EditExecute);

            if (IsInDesignMode)
            {
                OnNavigatedTo(new Post
                {
                    Title = "5 dollar app icons",
                    Text  =
                        "Studying gfx design and trying to do some freelance work on the side.\n\nCan do flat and minimilistic look. Text or icon based.",
                    Email  = "*****@*****.**",
                    IsNsfw = true
                },
                              NavigationMode.New,
                              new Dictionary <string, object>());
            }
        }
Пример #10
0
 public InsightsController(IInsightsService insightsService, ISessionService sessionService)
 {
     _insightsService = insightsService;
     _sessionService  = sessionService;
 }
Пример #11
0
 public BaseViewModel()
 {
     validator        = new ValidationHelper();
     _insightsService = Mvx.Resolve <IInsightsService>();
 }
Пример #12
0
 public InsightsController(IInsightsService service)
 {
     _insightService = service;
 }