2 using System.Collections.Generic;
6 using System.Windows.Controls;
7 using System.Windows.Documents;
10 using System.Windows.Media.Animation;
11 using System.Windows.Shapes;
12 using Microsoft.Phone.Controls;
19 public static Uri
URI =
new Uri(
"/SimplePage.xaml", UriKind.Relative );
24 InitializeComponent();
27 private void buttonSave_Click(
object sender, RoutedEventArgs e )
31 state.
Save<
bool>( checkBox1.IsChecked.Value,
"Check1" );
32 state.
Save<
bool>( checkBox2.IsChecked.Value,
"Check2" );
33 state.
Save<
bool>( checkBox3.IsChecked.Value,
"Check3" );
34 state.
Save<
string>( textBox1.Text,
"TextBox" );
38 private void buttonLoad_Click(
object sender, RoutedEventArgs e )
42 textBox1.Text =
"File not found.";
48 checkBox1.IsChecked = state.Load<
bool>(
false,
"Check1" );
49 checkBox2.IsChecked = state.Load<
bool>(
false,
"Check2" );
50 checkBox3.IsChecked = state.Load<
bool>(
false,
"Check3" );
51 textBox1.Text = state.Load<
string>( textBox1.Text,
"TextBox" );
55 private void buttonDelete_Click(
object sender, RoutedEventArgs e )
60 private void buttonClear_Click(
object sender, RoutedEventArgs e )
62 checkBox1.IsChecked =
false;
63 checkBox2.IsChecked =
false;
64 checkBox3.IsChecked =
false;
68 private void simpleTestPage_BackKeyPress(
object sender,
System.ComponentModel.CancelEventArgs e )
70 NavigationService.GoBack();
static IsolatedStorageManager Instance
override void Delete(string fileName)
Poistaa tiedoston.
override bool Exists(string fileName)
Kertoo onko tiedosto tai hakemisto olemassa.
LoadState BeginLoad(string fileName)
void Save(object obj, Type objType, string name)
SaveState BeginSave(string tag)