Jypeli
5
The simple game programming library
FileContentPage.xaml.cs
Siirry tämän tiedoston dokumentaatioon.
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
}
Jypeli.DataStorage.Instance
static IsolatedStorageManager Instance
Definition:
DataStorage.cs:5
SilverStorageTest.FileContentPage.FileContentPage
FileContentPage()
Definition:
FileContentPage.xaml.cs:24
System
Jypeli.StorageFile.Close
void Close()
Definition:
StorageFile.cs:29
SilverStorageTest
Definition:
App.xaml.cs:16
Jypeli
SilverStorageTest.FileContentPage.FileName
static string FileName
Definition:
FileContentPage.xaml.cs:22
SilverStorageTest.FileContentPage.URI
static Uri URI
Definition:
FileContentPage.xaml.cs:21
SilverStorageTest.FileContentPage
Definition:
FileContentPage.xaml.cs:19
Jypeli.StorageFile.Stream
Stream Stream
Definition:
StorageFile.cs:20
Jypeli.IsolatedStorageManager.Open
override StorageFile Open(string fileName, bool write)
Avaa tiedoston.
Definition:
IsolatedStorageManager.cs:89
Jypeli.StorageFile
Tiedosto.
Definition:
StorageFile.cs:17
Jypeli.DataStorage
Definition:
DataStorage.cs:3
Jypeli
JyStorage
SilverlightTest
FileContentPage.xaml.cs
Generoinut projektille Jypeli Fri Sep 15 2017 21:57:27
1.8.13