/// <summary>
/// Setup the application and initialize the tests.
/// </summary>
/// <param name="args">
/// Details about the launch request and process.
/// </param>
protected 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;
}
// Set the App Mode and configuration based on the arguments
Harness.SetAutoConfig(args.Arguments);
Frame rootFrame = new Frame();
if (Harness.Settings.ManualMode)
{
rootFrame.Navigate(typeof(MainPage));
}
else
{
rootFrame.Navigate(typeof(TestPage));
}
Window.Current.Content = rootFrame;
Window.Current.Activate();
}