Exemple #1
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            if (settingsService_ == null)
            {
                settingsService_ = ServiceRepository.Instance.Settings;
            }

            await SetDefaultCharsetAsync();

            var path = e.Parameter as StorageFile;

            if (path == null)
            {
                await document_.CreateAsync();
            }

            else
            {
                await document_.OpenAsync(path);
            }

            View.Navigate(typeof(DocumentView), document_);
        }