/// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            this._navigationhelper.OnNavigatedTo(e);

            _fileViewModel = Resources["filesSource"] as FileViewModel;
            _saveFile      = Resources["saveFileSource"] as FileModel;

            _fileViewModel.Clear();
            var task1 = _fileViewModel.GetStorageFolder();
            var task2 = _fileViewModel.GetFiles();
            await Task.WhenAll(task1, task2);

            var savefile = e.Parameter as FileModel;

            if (savefile != null)
            {
                _saveFile.Name    = savefile.Name;
                _saveFile.Content = savefile.Content;
            }
            else
            {
                savePanel.Visibility = Visibility.Collapsed;
            }
            if (nameText.IsReadOnly == true)
            {
                nameText.IsReadOnly = false;
            }
        }
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            this._navigationhelper.OnNavigatedTo(e);

            _fileViewModel = Resources["filesSource"] as FileViewModel;
            _saveFile = Resources["saveFileSource"] as FileModel;

            _fileViewModel.Clear();
            var task1 = _fileViewModel.GetStorageFolder();
            var task2 = _fileViewModel.GetFiles();
            await Task.WhenAll(task1, task2);
            
            var savefile = e.Parameter as FileModel;
            if (savefile != null)
            {
                _saveFile.Name = savefile.Name;
                _saveFile.Content = savefile.Content;
            }
            else
            {
                savePanel.Visibility = Visibility.Collapsed;
            }
            if (nameText.IsReadOnly == true)
            {
                nameText.IsReadOnly = false;                
            }

        }