source: 2014/24/EemeliK/Zombieland/Jypeli/JyStorage/SilverlightTest/FileContentPage.xaml.cs @ 5974

Revision 5974, 1.0 KB checked in by empaheik, 5 years ago (diff)
RevLine 
[5974]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Net;
5using System.Windows;
6using System.Windows.Controls;
7using System.Windows.Documents;
8using System.Windows.Input;
9using System.Windows.Media;
10using System.Windows.Media.Animation;
11using System.Windows.Shapes;
12using Microsoft.Phone.Controls;
13using Jypeli;
14using System.Text;
15using System.IO;
16
17namespace 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.