/// <summary>
        /// Portable application part constructor method. The root page of application (creating MainPage object).
        /// </summary>
        public App()
        {
            PageNavigation pageNavigation = new PageNavigation();

            if (DependencyService.Get <IPrivilegeService>().AllPermissionsGranted())
            {
                AppMediaContentViewModel = new MediaContentViewModel(pageNavigation);
                pageNavigation.CreateMainPage();
            }
            else
            {
                pageNavigation.NavigateToPrivilegeDeniedPage();
            }
        }
        /// <summary>
        /// The application constructor.
        /// Checks camera privileges. Shows pop-up if permissions are not granted.
        /// Sets application main page and view model.
        /// </summary>
        public Camera()
        {
            InitializeComponent();
            PageNavigation pageNavigation = new PageNavigation();

            if (!DependencyService.Get <IPrivilegeService>().AllPermissionsGranted())
            {
                pageNavigation.NavigateToPrivilegeDeniedPage();
            }
            else
            {
                AppMainViewModel = new CameraViewModel(pageNavigation);
                pageNavigation.CreateMainPage();
            }
        }