Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Net; |
---|
5 | using System.Windows; |
---|
6 | using System.Windows.Controls; |
---|
7 | using System.Windows.Documents; |
---|
8 | using System.Windows.Input; |
---|
9 | using System.Windows.Media; |
---|
10 | using System.Windows.Media.Animation; |
---|
11 | using System.Windows.Shapes; |
---|
12 | using Microsoft.Phone.Controls; |
---|
13 | using Jypeli; |
---|
14 | using System.Text; |
---|
15 | using System.IO; |
---|
16 | |
---|
17 | namespace SilverStorageTest |
---|
18 | { |
---|
19 | public partial class FileContentPage : PhoneApplicationPage |
---|
20 | { |
---|
21 | public static Uri URI = new Uri( "/FileContentPage.xaml", UriKind.Relative ); |
---|
22 | public static string FileName { private get; set; } |
---|
23 | |
---|
24 | public FileContentPage() |
---|
25 | { |
---|
26 | InitializeComponent(); |
---|
27 | PageTitle.Text = FileName; |
---|
28 | |
---|
29 | StorageFile file = DataStorage.Instance.Open( FileName, false ); |
---|
30 | StreamReader reader = new StreamReader( file.Stream ); |
---|
31 | FileContent.Text = reader.ReadToEnd(); |
---|
32 | reader.Close(); |
---|
33 | file.Close(); |
---|
34 | } |
---|
35 | } |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.