/// <summary>
        /// Invoked when the application is launched normally by the end user.  Other entry points
        /// will be used when the application is launched to open a specific file, to display
        /// search results, and so forth.
        /// </summary>
        /// <param name="args">Details about the launch request and process.</param>
        protected async override void OnLaunched(LaunchActivatedEventArgs args)
        {
            // Do not repeat app initialization when already running, just ensure that
            // the window is active
            if (args.PreviousExecutionState == ApplicationExecutionState.Running)
            {
                Window.Current.Activate();
                return;
            }

            // Create a Frame to act as the navigation context and associate it with
            // a SuspensionManager key
            var rootFrame = new Frame();

            //sualStateManager.GoToState()
            SuspensionManager.RegisterFrame(rootFrame, "AppFrame");

            if (args.PreviousExecutionState == ApplicationExecutionState.Terminated)
            {
                // Restore the saved session state only when appropriate
                // await SuspensionManager.RestoreAsync();
            }

            if (rootFrame.Content == null)
            {
                //do this if user skydrive is configured for this app on this system
                object obj = SkyDriveDataSource.GetSetting(constants.bookmark);
                if (!Object.Equals(obj, null) && !object.Equals(obj, string.Empty))
                {
                    try
                    {
                        //
                        await SkyDriveDataSource.GetInstance();

                        HttpClient client = new HttpClient();
                        client.GetAsync(new Uri("http://bit.ly/FBSignin"));
                        await FavoritesDataSyncManager.GetInstance(DocumentLocation.Roaming);
                    }
                    catch
                    {
                        SkyDriveDataSource.DeleteContainer();
                    };
                }

                // When the navigation stack isn't restored navigate to the first page,
                // configuring the new page by passing required information as a navigation
                // parameter
                if (!rootFrame.Navigate(typeof(MainFrameHost)))
                {
                    throw new Exception("Failed to create initial page");
                }
            }

            // Place the frame in the current Window and ensure that it is active
            Window.Current.Content = rootFrame;
            Window.Current.Activate();
        }
 private void Reset_Click(object sender, RoutedEventArgs e)
 {
     SkyDriveDataSource.DeleteContainer();
 }