private void OnResuming(object sender, object args) { // Restore any data or state that was unloaded on suspend. By default, data // and state are persisted when resuming from suspend. Note that this event // does not occur if the app was previously terminated. if (null != main) { main.LoadAppState(); } // // TODO: Insert code here to load your app state. // }