Exemple #1
0
        public UploadVideoViewModel(
            INavigationService navigationService,
            IVidMeClient vidMeClient,
            IApplicationSettingsService applicationSettings,
            FoursqureViewModel foursqureViewModel,
            EditVideoViewModel editVideoViewModel)
        {
            EditVideo            = editVideoViewModel;
            _navigationService   = navigationService;
            _vidMeClient         = vidMeClient;
            _applicationSettings = applicationSettings;
            _foursqureViewModel  = foursqureViewModel;

            if (IsInDesignMode)
            {
                IsUploading = true;
            }
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public VideoRecordViewModel(
            INavigationService navigationService,
            ICameraInfoService cameraInfo,
            AvatarViewModel avatar,
            ITileService tileService,
            FoursqureViewModel foursquare)
        {
            Avatar             = avatar;
            _navigationService = navigationService;
            _cameraInfo        = cameraInfo;
            _tileService       = tileService;
            Foursquare         = foursquare;
            if (IsInDesignMode)
            {
                // Code runs in Blend --> create design time data.
                CanTurnOnFlash       = true;
                HasFrontFacingCamera = true;
            }

            _cameraInfo.IsInitialisedChanged += CameraInfoOnIsInitialisedChanged;
        }