Пример #1
0
        private void ProcessInputParameters()
        {
            AudioAlbum pickedAlbum = ParametersRepository.GetParameterForIdAndReset("PickedAlbum") as AudioAlbum;

            if (pickedAlbum == null || !this.IsInMultiSelectMode)
            {
                return;
            }
            List <AudioHeader> headersToMove = this.GetSelectedAudioHeaders();

            this.IsInMultiSelectMode = false;
            this.ViewModel.MoveTracksToAlbum(headersToMove, pickedAlbum, (Action <bool>)(result => Execute.ExecuteOnUIThread((Action)(() =>
            {
                if (!result)
                {
                    ExtendedMessageBox.ShowSafe(CommonResources.GenericErrorText);
                }
                else
                {
                    if (MessageBox.Show(UIStringFormatterHelper.FormatNumberOfSomething(headersToMove.Count, AudioResources.OneAudioMovedFrm, AudioResources.TwoFourAudiosMovedFrm, AudioResources.FiveAudiosMovedFrm, true, pickedAlbum.title, false), AudioResources.MoveAudios, MessageBoxButton.OKCancel) != MessageBoxResult.OK)
                    {
                        return;
                    }
                    Navigator.Current.NavigateToAudio(0, this.CommonParameters.UserOrGroupId, this.CommonParameters.IsGroup, pickedAlbum.album_id, 0, pickedAlbum.title);
                }
            }))));
        }
Пример #2
0
        protected override void HandleOnNavigatedTo(NavigationEventArgs e)
        {
            base.HandleOnNavigatedTo(e);
            bool flag = true;

            if (!this._isInitialized)
            {
                this._ownerId = long.Parse(((Page)this).NavigationContext.QueryString["OwnerId"]);
                this._videoId = long.Parse(((Page)this).NavigationContext.QueryString["VideoId"]);
                string accessKey    = ((Page)this).NavigationContext.QueryString["AccessKey"];
                string videoContext = "";
                if (((Page)this).NavigationContext.QueryString.ContainsKey("VideoContext"))
                {
                    videoContext = ((Page)this).NavigationContext.QueryString["VideoContext"];
                }
                VKClient.Common.Backend.DataObjects.Video parameterForIdAndReset = ParametersRepository.GetParameterForIdAndReset("Video") as VKClient.Common.Backend.DataObjects.Video;
                StatisticsActionSource actionSource = (StatisticsActionSource)Enum.Parse(typeof(StatisticsActionSource), ((Page)this).NavigationContext.QueryString["VideoSource"]);
                this.InitializeCommentVM();
                VideoCommentsViewModel commentsViewModel = new VideoCommentsViewModel(this._ownerId, this._videoId, accessKey, parameterForIdAndReset, actionSource, videoContext);
                commentsViewModel.PageLoadInfoViewModel.LoadingStateChangedCallback = new Action(this.OnLoadingStateChanged);
                base.DataContext = (commentsViewModel);
                commentsViewModel.Reload(true);
                this.RestoreUnboundState();
                this._isInitialized = true;
                flag = false;
            }
            if (!flag && (!e.IsNavigationInitiator || e.NavigationMode != NavigationMode.New))
            {
                WallPostVMCacheManager.TryDeserializeInstance(this._commentVM);
            }
            this.ProcessInputData();
            this.UpdateAppBar();
        }
Пример #3
0
 protected override void HandleOnNavigatedTo(NavigationEventArgs e)
 {
     base.HandleOnNavigatedTo(e);
     if (!this._isInitialized)
     {
         base.DataContext = (new ChatEditViewModel(long.Parse(((Page)this).NavigationContext.QueryString["ChatId"]), ((Page)this).NavigationService));
         this.ChatEditVM.Reload(true);
         this._isInitialized = true;
     }
     else
     {
         List <User> parameterForIdAndReset1 = ParametersRepository.GetParameterForIdAndReset("SelectedUsers") as List <User>;
         if (parameterForIdAndReset1 != null && Enumerable.Any <User>(parameterForIdAndReset1))
         {
             this.ChatEditVM.AddMember((User)Enumerable.First <User>(parameterForIdAndReset1));
         }
         List <Stream> parameterForIdAndReset2 = ParametersRepository.GetParameterForIdAndReset("ChoosenPhotos") as List <Stream>;
         if (parameterForIdAndReset2 == null || !Enumerable.Any <Stream>(parameterForIdAndReset2))
         {
             return;
         }
         Rect crop = new Rect();
         if (ParametersRepository.Contains("UserPicSquare"))
         {
             crop = (Rect)ParametersRepository.GetParameterForIdAndReset("UserPicSquare");
         }
         this.ChatEditVM.UpdatePhoto(parameterForIdAndReset2[0], crop);
     }
 }
Пример #4
0
        protected override void HandleOnNavigatedTo(NavigationEventArgs e)
        {
            base.HandleOnNavigatedTo(e);
            bool flag = true;

            if (!this._isInitialized)
            {
                IDictionary <string, string> queryString = this.NavigationContext.QueryString;
                this._ownerId   = long.Parse(queryString["OwnerId"]);
                this._productId = long.Parse(queryString["ProductId"]);
                Product product = ParametersRepository.GetParameterForIdAndReset("Product") as Product;
                this.InitializeCommentVM();
                this._viewModel = product != null ? new ProductViewModel(product) : new ProductViewModel(this._ownerId, this._productId);
                this._viewModel.PageLoadInfoViewModel.LoadingStateChangedCallback = new Action(this.OnLoadedStateChanged);
                this.DataContext = (object)this._viewModel;
                this._viewModel.Reload();
                this.RestoreUnboundState();
                this._isInitialized = true;
                flag = false;
            }
            if (!flag && (!e.IsNavigationInitiator || e.NavigationMode != NavigationMode.New))
            {
                WallPostVMCacheManager.TryDeserializeInstance(this._commentVM);
            }
            this.ProcessInputData();
        }
Пример #5
0
        protected override void HandleOnNavigatedTo(NavigationEventArgs e)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            //   PhotoPickerPhotos.<>c__DisplayClass25_0 cDisplayClass250 = new PhotoPickerPhotos.<>c__DisplayClass25_0();
            // ISSUE: reference to a compiler-generated field
            //   cDisplayClass250.<>4__this = this;
            base.HandleOnNavigatedTo(e);
            if (!this._isInitialized)
            {
                PhotoPickerPhotosViewModel pickerPhotosViewModel = new PhotoPickerPhotosViewModel(int.Parse(((Page)this).NavigationContext.QueryString["MaxAllowedToSelect"]), bool.Parse(((Page)this).NavigationContext.QueryString["OwnPhotoPick"]));
                pickerPhotosViewModel.PropertyChanged += new PropertyChangedEventHandler(this.vm_PropertyChanged);
                base.DataContext        = pickerPhotosViewModel;
                this._pickToStorageFile = bool.Parse(((Page)this).NavigationContext.QueryString["PickToStorageFile"]);
                this._isInitialized     = true;
            }
            object parameterForIdAndReset = ParametersRepository.GetParameterForIdAndReset("CapturedPhoto");
            // ISSUE: reference to a compiler-generated field
            bool haveCapturedPhoto = parameterForIdAndReset != null;

            // ISSUE: method pointer
            this.VM.LoadData(true, delegate
            {
                if (haveCapturedPhoto)
                {
                    this.SelectCapturedPhoto();
                }
            });
            this.UpdateAppBar();
        }
Пример #6
0
        private void HandleSelectedItem(object listBox, object selectedItem)
        {
            GroupHeader groupHeader = selectedItem as GroupHeader;

            if (groupHeader == null)
            {
                return;
            }
            if (this._pickManaged)
            {
                if (this._ownerId != 0L && this._picId != 0L)
                {
                    this.Share(this._text ?? "", groupHeader.Group.id, groupHeader.Group.name ?? "");
                }
                ParametersRepository.SetParameterForId("PickedGroupForRepost", (object)groupHeader.Group);
                EventAggregator.Current.Publish((object)new PhotoIsRepostedInGroup());
                ((Page)this).NavigationService.GoBackSafe();
            }
            else if (this._shareContentDataProvider != null)
            {
                this._shareContentDataProvider.StoreDataToRepository();
                ShareContentDataProviderManager.StoreDataProvider(this._shareContentDataProvider);
                Navigator.Current.NavigateToNewWallPost(groupHeader.Group.id, true, groupHeader.Group.admin_level, groupHeader.Group.GroupType == GroupType.PublicPage, false, false);
            }
            else
            {
                Navigator.Current.NavigateToGroup(groupHeader.Group.id, groupHeader.Group.name, false);
            }
        }
Пример #7
0
        private static void CameraCaptureTask_OnCompleted(object sender, PhotoResult e)
        {
            if (((TaskEventArgs)e).TaskResult != TaskResult.OK)
            {
                return;
            }
            MemoryStream memoryStream = StreamUtils.ReadFully(e.ChosenPhoto);

            e.ChosenPhoto.Position = 0L;
            memoryStream.Position  = 0L;
            ParametersRepository.SetParameterForId("ChoosenPhotos", new List <Stream>()
            {
                e.ChosenPhoto
            });
            ParametersRepository.SetParameterForId("ChoosenPhotosPreviews", new List <Stream>()
            {
                (Stream)memoryStream
            });
            string      paramId  = "ChoosenPhotosSizes";
            List <Size> sizeList = new List <Size>();
            Size        size     = new Size();

            sizeList.Add(size);
            ParametersRepository.SetParameterForId(paramId, sizeList);
        }
Пример #8
0
        private void ProcessInputParameters()
        {
            Group group = ParametersRepository.GetParameterForIdAndReset("PickedGroupForRepost") as Group;

            if (group != null)
            {
                foreach (IVirtualizable virtualizable in (Collection <IVirtualizable>) this._viewModel.WallVM.Collection)
                {
                    WallPostItem wallPostItem = virtualizable as WallPostItem;
                    if (wallPostItem != null && wallPostItem.LikesAndCommentsItem != null)
                    {
                        if (wallPostItem.LikesAndCommentsItem.ShareInGroupIfApplicable(group.id, group.name))
                        {
                            break;
                        }
                    }
                }
            }
            List <Stream> streamList = ParametersRepository.GetParameterForIdAndReset("ChoosenPhotos") as List <Stream>;
            Rect          rect       = new Rect();

            if (ParametersRepository.Contains("UserPicSquare"))
            {
                rect = (Rect)ParametersRepository.GetParameterForIdAndReset("UserPicSquare");
            }
            if (streamList == null || streamList.Count <= 0)
            {
                return;
            }
            this._viewModel.UploadProfilePhoto(streamList[0], rect);
        }
Пример #9
0
        protected override void HandleOnNavigatedTo(NavigationEventArgs e)
        {
            base.HandleOnNavigatedTo(e);
            if (!this._isInitialized)
            {
                if (this.CommonParameters.UserOrGroupId == 0L)
                {
                    this.CommonParameters.UserOrGroupId = AppGlobalStateManager.Current.LoggedInUserId;
                }
                this.Initialize();
                this.BuildAppBar();
                this.PerformInitialLoad();
                this.allAudio.IsInPickMode = this.CommonParameters.PickMode;
                this.UpdateAppBar();
                this._isInitialized = true;
            }
            this.ProcessInputParameters();
            CurrentMediaSource.AudioSource = this.CommonParameters.IsGroup ? StatisticsActionSource.audios_group : StatisticsActionSource.audios_user;
            FileOpenPickerContinuationEventArgs parameterForIdAndReset = ParametersRepository.GetParameterForIdAndReset("FilePicked") as FileOpenPickerContinuationEventArgs;

            if (parameterForIdAndReset == null || !((IEnumerable <StorageFile>)parameterForIdAndReset.Files).Any <StorageFile>())
            {
                return;
            }
            StorageFile file = ((IEnumerable <StorageFile>)parameterForIdAndReset.Files).First <StorageFile>();

            this.SkipNextNavigationParametersRepositoryClearing = true;
            Navigator.Current.NavigateToAddNewAudio(file);
        }
Пример #10
0
 public void HandleTap()
 {
     if (this._fromSearch)
     {
         return;
     }
     if (!this._pickMode)
     {
         CurrentMediaSource.VideoSource  = this._actionSource;
         CurrentMediaSource.VideoContext = this._context;
         Navigator.Current.NavigateToVideoWithComments(this._vKVideo, this._vKVideo.owner_id, this._vKVideo.vid, this._vKVideo.access_key);
     }
     else
     {
         ParametersRepository.SetParameterForId("PickedVideo", this._vKVideo);
         if (this._albumId != 0L)
         {
             PageBase currentPage = FramePageUtils.CurrentPage;
             if (currentPage != null)
             {
                 ((Page)currentPage).NavigationService.RemoveBackEntrySafe();
             }
         }
         Navigator.Current.GoBack();
     }
 }
Пример #11
0
        protected override void HandleOnNavigatedTo(NavigationEventArgs e)
        {
            base.HandleOnNavigatedTo(e);
            if (this._isInitialized)
            {
                return;
            }
            long      communityId            = long.Parse(((Page)this).NavigationContext.QueryString["CommunityId"]);
            GroupType communityType          = (GroupType)int.Parse(((Page)this).NavigationContext.QueryString["CommunityType"]);
            User      parameterForIdAndReset = (User)ParametersRepository.GetParameterForIdAndReset("CommunityManager");
            bool      isEditing  = ((Page)this).NavigationContext.QueryString.ContainsKey("IsContact");
            bool      fromPicker = ((Page)this).NavigationContext.QueryString.ContainsKey("FromPicker") && bool.Parse(((Page)this).NavigationContext.QueryString["FromPicker"]);
            bool      isContact  = false;
            string    position   = "";
            string    email      = "";
            string    phone      = "";

            if (isEditing)
            {
                isContact = ((Page)this).NavigationContext.QueryString["IsContact"].ToLower() == "true";
                position  = Extensions.ForUI(((Page)this).NavigationContext.QueryString["Position"]);
                email     = Extensions.ForUI(((Page)this).NavigationContext.QueryString["Email"]);
                phone     = Extensions.ForUI(((Page)this).NavigationContext.QueryString["Phone"]);
            }
            ManagerEditingViewModel viewModel = new ManagerEditingViewModel(communityId, communityType, ((Page)this).NavigationService, parameterForIdAndReset, isContact, position, email, phone, isEditing, fromPicker);

            base.DataContext = viewModel;
            ApplicationBarIconButton applicationBarIconButton1 = new ApplicationBarIconButton();
            Uri uri1 = new Uri("/Resources/check.png", UriKind.Relative);

            applicationBarIconButton1.IconUri = uri1;
            string appBarMenuSave = CommonResources.AppBarMenu_Save;

            applicationBarIconButton1.Text = appBarMenuSave;
            int num = viewModel.IsFormCompleted ? 1 : 0;

            applicationBarIconButton1.IsEnabled = (num != 0);
            ApplicationBarIconButton appBarButtonSave          = applicationBarIconButton1;
            ApplicationBarIconButton applicationBarIconButton2 = new ApplicationBarIconButton();
            Uri uri2 = new Uri("/Resources/appbar.cancel.rest.png", UriKind.Relative);

            applicationBarIconButton2.IconUri = uri2;
            string appBarCancel = CommonResources.AppBar_Cancel;

            applicationBarIconButton2.Text = appBarCancel;
            ApplicationBarIconButton applicationBarIconButton3 = applicationBarIconButton2;

            appBarButtonSave.Click += ((EventHandler)((p, f) =>
            {
                ((Control)this).Focus();
                viewModel.SaveChanges(false, ((Page)this).NavigationService);
            }));
            applicationBarIconButton3.Click += ((EventHandler)((p, f) => Navigator.Current.GoBack()));
            this.ApplicationBar              = ((IApplicationBar)ApplicationBarBuilder.Build(new Color?(), new Color?(), 0.9));
            viewModel.PropertyChanged       += (PropertyChangedEventHandler)((p, f) => appBarButtonSave.IsEnabled = (viewModel.IsFormEnabled && viewModel.IsFormCompleted));
            this.ApplicationBar.Buttons.Add(appBarButtonSave);
            this.ApplicationBar.Buttons.Add(applicationBarIconButton3);
            this._isInitialized = true;
        }
Пример #12
0
 private void editCommentCallback(CommentItem commentItem)
 {
     commentItem.Comment.GroupId = this._gid;
     commentItem.Comment.TopicId = this._tid;
     ParametersRepository.SetParameterForId("EditDiscussionComment", (object)commentItem.Comment);
     ParametersRepository.SetParameterForId("CidToAuthorIdDict", (object)this.GetCidToAuthorDict());
     Navigator.Current.NavigateToNewWallPost(Math.Abs(commentItem.Comment.owner_id), commentItem.Comment.owner_id < 0, 0, false, false, false);
 }
Пример #13
0
 private static void PhotoChooserTask_OnCompleted(object sender, PhotoResult e)
 {
     if (e.TaskResult != TaskResult.OK)
     {
         return;
     }
     ParametersRepository.SetParameterForId("ChoosenPhoto", (object)e.ChosenPhoto);
 }
Пример #14
0
 public MainWindow()
 {
     GlobalVariables.Random = new Random(10);
     InitializeComponent();
     GameSettings            = new GameSettings();
     configurationRepository = new ParametersRepository();
     GetConfiguration();
 }
Пример #15
0
 private void _appBarButtonCheck_Click(object sender, EventArgs e)
 {
     this.VM.SavePoll((Action <Poll>)(poll =>
     {
         ParametersRepository.SetParameterForId("UpdatedPoll", poll);
         Navigator.Current.GoBack();
     }));
 }
Пример #16
0
 private void _photoChooserTask_Completed(object sender, PhotoResult e)
 {
     if (((TaskEventArgs)e).TaskResult != TaskResult.OK)
     {
         return;
     }
     ParametersRepository.SetParameterForId("ChoosenPhoto", (object)e.ChosenPhoto);
 }
Пример #17
0
 private void _photoChooserTask_Completed(object sender, PhotoResult e)
 {
     Logger.Instance.Info("Back from photo chooser");
     if (((TaskEventArgs)e).TaskResult != TaskResult.OK)
     {
         return;
     }
     ParametersRepository.SetParameterForId("ChoosenPhoto", e.ChosenPhoto);
 }
Пример #18
0
 public ConfigurationViewModel(GameSettings gameSetting) : base()
 {
     PopulationRepository    = new PopulationRepository();
     Configurationrepository = new ParametersRepository();
     settings          = gameSetting;
     SpeedOfGame       = gameSetting.SzybkoscGry.ToString();
     AmounOfPopulation = gameSetting.AmountOfPopulation.ToString();
     MutationPercent   = gameSetting.MuationPercent.ToString();
 }
Пример #19
0
 private void ShowAllBlock_OnTapped(object sender, System.Windows.Input.GestureEventArgs e)
 {
     if (this._model == null)
     {
         return;
     }
     ParametersRepository.SetParameterForId("FriendRequestsUC", this);
     Navigator.Current.NavigateToFriendRequests(this._model.are_suggested_friends);
 }
Пример #20
0
 public static void NavigateToEditWallPost(this WallPost wallPost, int adminLevel)
 {
     if (wallPost == null)
     {
         return;
     }
     ParametersRepository.SetParameterForId("EditWallPost", (object)wallPost);
     Navigator.Current.NavigateToNewWallPost(Math.Abs(wallPost.to_id), wallPost.to_id < 0L, adminLevel, false, false, false);
 }
Пример #21
0
 private void ShowAllBlock_OnTapped(object sender, System.Windows.Input.GestureEventArgs e)
 {
     if (this.Model == null)
     {
         return;
     }
     ParametersRepository.SetParameterForId("CommunityInvitationsUC", this);
     Navigator.Current.NavigateToGroupInvitations();
 }
Пример #22
0
        private void HandleInputParameters()
        {
            ValidationUserResponse parameterForIdAndReset = ParametersRepository.GetParameterForIdAndReset("ValidationResponse") as ValidationUserResponse;

            if (parameterForIdAndReset == null)
            {
                return;
            }
            this.VM.HandleValidationResponse(parameterForIdAndReset);
        }
Пример #23
0
 public void StoreDataToRepository()
 {
     ParametersRepository.SetParameterForId("NewMessageContents", (this.Message ?? (this.Message = "")));
     ParametersRepository.SetParameterForId("WallPostAttachment", this.WallPost);
     ParametersRepository.SetParameterForId("PickedPhoto", this.Photo);
     ParametersRepository.SetParameterForId("PickedVideo", this.Video);
     ParametersRepository.SetParameterForId("ShareProduct", this.Product);
     ParametersRepository.SetParameterForId("MessagesToForward", this.ForwardedMessages);
     ParametersRepository.SetParameterForId("PickedDocument", this.Document);
 }
Пример #24
0
        private void HandleInputParameters()
        {
            List <Stream> parameterForIdAndReset = ParametersRepository.GetParameterForIdAndReset("ChoosenPhotos") as List <Stream>;

            if (parameterForIdAndReset == null || parameterForIdAndReset.Count <= 0)
            {
                return;
            }
            this.UploadPhotos(parameterForIdAndReset, 0);
        }
Пример #25
0
        private static void ProcessMoneyTransferSendResult(IDictionary <string, string> dict)
        {
            MoneyTransferSentResponse transferSentResponse = new MoneyTransferSentResponse();

            if (dict.ContainsKey("success"))
            {
                transferSentResponse.IsSucceeded = true;
            }
            ParametersRepository.SetParameterForId("MoneyTransferSentResponse", transferSentResponse);
        }
Пример #26
0
        private void Image_Tap_1(object sender, System.Windows.Input.GestureEventArgs e)
        {
            FrameworkElement           frameworkElement = sender as FrameworkElement;
            AlbumPhoto                 albumPhoto       = null;
            AlbumPhotoHeaderFourInARow dataContext      = frameworkElement.DataContext as AlbumPhotoHeaderFourInARow;

            if (dataContext != null)
            {
                string str = frameworkElement.Tag.ToString();
                if (!(str == "1"))
                {
                    if (!(str == "2"))
                    {
                        if (!(str == "3"))
                        {
                            if (str == "4")
                            {
                                albumPhoto = dataContext.Photo4;
                            }
                        }
                        else
                        {
                            albumPhoto = dataContext.Photo3;
                        }
                    }
                    else
                    {
                        albumPhoto = dataContext.Photo2;
                    }
                }
                else
                {
                    albumPhoto = dataContext.Photo1;
                }
            }
            else
            {
                albumPhoto = frameworkElement.DataContext as AlbumPhoto;
            }
            if (albumPhoto == null)
            {
                return;
            }
            if (this._pickMode)
            {
                ParametersRepository.SetParameterForId("PickedPhoto", albumPhoto.Photo);
                base.NavigationService.RemoveBackEntrySafe();
                base.NavigationService.GoBackSafe();
            }
            else
            {
                List <Photo> list = this.PhotoAlbumVM.AlbumPhotos.Select <AlbumPhoto, Photo>((Func <AlbumPhoto, Photo>)(ap => ap.Photo)).ToList <Photo>();
                Navigator.Current.NavigateToImageViewer(this.PhotoAlbumVM.AlbumId, (int)this.PhotoAlbumVM.AType, this._inputData.UserOrGroupId, this._inputData.IsGroup, this.PhotoAlbumVM.PhotosCount, list.IndexOf(albumPhoto.Photo), list, new Func <int, Image>(this.GetPhotoById));
            }
        }
Пример #27
0
 protected override void HandleOnNavigatedTo(NavigationEventArgs e)
 {
     base.HandleOnNavigatedTo(e);
     if (this._isIntialized)
     {
         return;
     }
     this._viewModel    = new UsersSearchParamsViewModel(ParametersRepository.GetParameterForIdAndReset("UsersSearchParams") as SearchParams);
     base.DataContext   = this._viewModel;
     this._isIntialized = true;
 }
Пример #28
0
        private void HandleInputParams()
        {
            List <User>        parameterForIdAndReset1 = ParametersRepository.GetParameterForIdAndReset("SelectedUsers") as List <User>;
            List <FriendsList> parameterForIdAndReset2 = ParametersRepository.GetParameterForIdAndReset("SelectedLists") as List <FriendsList>;

            if (this.VM == null || parameterForIdAndReset2 == null && parameterForIdAndReset1 == null)
            {
                return;
            }
            this.VM.HandlePickedUsers(parameterForIdAndReset1, parameterForIdAndReset2);
        }
Пример #29
0
        private void List_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DocumentHeader selectedItem = ((LongListSelector)sender).SelectedItem as DocumentHeader;

            if (selectedItem == null)
            {
                return;
            }
            this.list.SelectedItem = null;
            ParametersRepository.SetParameterForId("PickedDocument", selectedItem.Document);
            Navigator.Current.GoBack();
        }
Пример #30
0
 protected override void HandleOnNavigatingFrom(NavigatingCancelEventArgs e)
 {
     base.HandleOnNavigatingFrom(e);
     if (e.NavigationMode != NavigationMode.Back || ParametersRepository.Contains("ValidationResponse"))
     {
         return;
     }
     ParametersRepository.SetParameterForId("ValidationResponse", new ValidationUserResponse()
     {
         IsSucceeded = false
     });
 }