Subversion Repository Public Repository

Nextrek

Diff Revisions 43 vs 45 for /WindowsPhone/NotizieTL/NotizieTL/App.xaml.cs

Diff revisions: vs.
  @@ -82,15 +82,14 @@
82 82 // This code will not execute when the application is reactivated
83 83 private void Application_Launching(object sender, LaunchingEventArgs e)
84 84 {
85 - //loadState();
85 +
86 86 }
87 87
88 88 // Code to execute when the application is activated (brought to foreground)
89 89 // This code will not execute when the application is first launched
90 90 private void Application_Activated(object sender, ActivatedEventArgs e)
91 91 {
92 - //loadState();
93 -
92 +
94 93 // Ensure that application state is restored appropriately
95 94 if (!App.ViewModel.IsDataLoaded)
96 95 {
  @@ -102,7 +101,7 @@
102 101 // This code will not execute when the application is closing
103 102 private void Application_Deactivated(object sender, DeactivatedEventArgs e)
104 103 {
105 - //saveState();
104 +
106 105 }
107 106
108 107 // Code to execute when the application is closing (eg, user hit Back)
  @@ -110,7 +109,7 @@
110 109 private void Application_Closing(object sender, ClosingEventArgs e)
111 110 {
112 111 // Ensure that required application state is persisted here.
113 - //saveState();
112 +
114 113 }
115 114
116 115 // Code to execute if a navigation fails
  @@ -169,33 +168,7 @@
169 168
170 169 #endregion
171 170
172 - private void saveState()
173 - {
174 - //PhoneApplicationService phoneAppService = PhoneApplicationService.Current;
175 - //IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
176 -
177 - ////Take whatever is in our temporary "state bag" and save it to
178 - ////the phone's permanent flash memory
179 -
180 - //settings["MyValue"] = phoneAppService.State["MyValue"];
181 -
182 - }
183 -
184 - private void loadState()
185 - {
186 - //PhoneApplicationService phoneAppService = PhoneApplicationService.Current;
187 - //IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
188 -
189 - //object myValue;
190 - //if (settings.TryGetValue<object>("MyValue", out myValue))
191 - //{
192 -
193 - // phoneAppService.State["MyValue"] = myValue;
194 -
195 - //}
196 -
197 -
198 - }
171 +
199 172
200 173
201 174 }