Skip to content

Commit

Permalink
Added ErrorLookup
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Apr 28, 2016
1 parent bec64ed commit f519efd
Show file tree
Hide file tree
Showing 26 changed files with 15,817 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Samples/Tools/errorlookup/errorlookup.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "errorlookup", "errorlookup\errorlookup.csproj", "{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|ARM.ActiveCfg = Debug|ARM
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|ARM.Build.0 = Debug|ARM
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|ARM.Deploy.0 = Debug|ARM
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x64.ActiveCfg = Debug|x64
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x64.Build.0 = Debug|x64
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x64.Deploy.0 = Debug|x64
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x86.ActiveCfg = Debug|x86
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x86.Build.0 = Debug|x86
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Debug|x86.Deploy.0 = Debug|x86
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|ARM.ActiveCfg = Release|ARM
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|ARM.Build.0 = Release|ARM
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|ARM.Deploy.0 = Release|ARM
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x64.ActiveCfg = Release|x64
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x64.Build.0 = Release|x64
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x64.Deploy.0 = Release|x64
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x86.ActiveCfg = Release|x86
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x86.Build.0 = Release|x86
{06A00C89-1CCB-4F7B-AC52-9EB2762FB262}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
11 changes: 11 additions & 0 deletions Samples/Tools/errorlookup/errorlookup/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Application
x:Class="errorlookup.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="using:errorlookup"
RequestedTheme="Light"
mc:Ignorable="d">

</Application>
110 changes: 110 additions & 0 deletions Samples/Tools/errorlookup/errorlookup/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

namespace errorlookup
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
sealed partial class App : Application
{
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
Microsoft.ApplicationInsights.WindowsAppInitializer.InitializeAsync(
Microsoft.ApplicationInsights.WindowsCollectors.Metadata |
Microsoft.ApplicationInsights.WindowsCollectors.Session);
this.InitializeComponent();
this.Suspending += OnSuspending;


}

/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="e">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs e)
{

#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
{
this.DebugSettings.EnableFrameRateCounter = true;
}
#endif

Frame rootFrame = Window.Current.Content as Frame;

// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null)
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();

rootFrame.NavigationFailed += OnNavigationFailed;

if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
{
//TODO: Load state from previously suspended application
}

// Place the frame in the current Window
Window.Current.Content = rootFrame;
}

if (rootFrame.Content == null)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame.Navigate(typeof(MainPage), e.Arguments);
}
// Ensure the current window is active
Window.Current.Activate();
}

/// <summary>
/// Invoked when Navigation to a certain page fails
/// </summary>
/// <param name="sender">The Frame which failed navigation</param>
/// <param name="e">Details about the navigation failure</param>
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
{
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
}

/// <summary>
/// Invoked when application execution is being suspended. Application state is saved
/// without knowing whether the application will be terminated or resumed with the contents
/// of memory still intact.
/// </summary>
/// <param name="sender">The source of the suspend request.</param>
/// <param name="e">Details about the suspend request.</param>
private void OnSuspending(object sender, SuspendingEventArgs e)
{
var deferral = e.SuspendingOperation.GetDeferral();
//TODO: Save application state and stop any background activity
deferral.Complete();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights xmlns = "http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
</ApplicationInsights>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f519efd

Please sign in to comment.