示例#1
0
        /// <summary>
        ///     ctor();
        /// </summary>
        public DriveAutoDetailsViewModel(IPickMediaService pickMediaService,
                                         IVisionService visionService,
                                         IDriveAutoService driveAutoService)
        {
            _visionService    = visionService;
            _pickMediaService = pickMediaService;
            _driveAutoService = driveAutoService;

            ActionBarViewModel = DependencyLocator.Resolve <CommonActionBarViewModel>();

            IsBackButtonAvailable = NavigationService.IsBackButtonAvailable;
        }
示例#2
0
        public NewPostViewModel(
            IPickMediaService pickMediaService,
            IValidationObjectFactory validationObjectFactory)
        {
            _pickMediaService        = pickMediaService;
            _validationObjectFactory = validationObjectFactory;

            ResetValidationObjects();
            AttachedPostMedias = new ObservableCollection <AttachedAnnounceMediaBase>();

            ActionBarViewModel = DependencyLocator.Resolve <NewPostActionBarViewModel>();
        }