Skip to content

Commit d548952

Browse files
initial commit
0 parents  commit d548952

16 files changed

+2311
-0
lines changed

.gitattributes

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln merge=union
7+
*.csproj merge=union
8+
*.vbproj merge=union
9+
*.fsproj merge=union
10+
*.dbproj merge=union
11+
12+
# Standard to msysgit
13+
*.doc diff=astextplain
14+
*.DOC diff=astextplain
15+
*.docx diff=astextplain
16+
*.DOCX diff=astextplain
17+
*.dot diff=astextplain
18+
*.DOT diff=astextplain
19+
*.pdf diff=astextplain
20+
*.PDF diff=astextplain
21+
*.rtf diff=astextplain
22+
*.RTF diff=astextplain

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#################
2+
## Visual Studio
3+
#################
4+
5+
## Ignore Visual Studio temporary files, build results, and
6+
## files generated by popular Visual Studio add-ons.
7+
8+
# User-specific files
9+
*.suo
10+
*.user
11+
*.sln.docstates
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Rr]elease/
16+
*_i.c
17+
*_p.c
18+
*.ilk
19+
*.meta
20+
*.obj
21+
*.pch
22+
*.pdb
23+
*.pgc
24+
*.pgd
25+
*.rsp
26+
*.sbr
27+
*.tlb
28+
*.tli
29+
*.tlh
30+
*.tmp
31+
*.vspscc
32+
.builds
33+
*.dotCover
34+
35+
## TODO: If you have NuGet Package Restore enabled, uncomment this
36+
#packages/
37+
38+
# ReSharper is a .NET coding add-in
39+
_ReSharper*
40+
41+
!.nuget/*.*

SubSonic8/App.xaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Application
2+
x:Class="SubSonic8.App"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:local="using:SubSonic8">
6+
7+
<Application.Resources>
8+
<ResourceDictionary>
9+
<ResourceDictionary.MergedDictionaries>
10+
11+
<!--
12+
Styles that define common aspects of the platform look and feel
13+
Required by Visual Studio project and item templates
14+
-->
15+
<ResourceDictionary Source="Common/StandardStyles.xaml"/>
16+
</ResourceDictionary.MergedDictionaries>
17+
18+
</ResourceDictionary>
19+
</Application.Resources>
20+
</Application>

SubSonic8/App.xaml.cs

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
using System;
2+
using Windows.ApplicationModel;
3+
using Windows.ApplicationModel.Activation;
4+
using Windows.UI.Xaml;
5+
using Windows.UI.Xaml.Controls;
6+
7+
// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=234227
8+
9+
namespace SubSonic8
10+
{
11+
/// <summary>
12+
/// Provides application-specific behavior to supplement the default Application class.
13+
/// </summary>
14+
sealed partial class App
15+
{
16+
/// <summary>
17+
/// Initializes the singleton application object. This is the first line of authored code
18+
/// executed, and as such is the logical equivalent of main() or WinMain().
19+
/// </summary>
20+
public App()
21+
{
22+
InitializeComponent();
23+
Suspending += OnSuspending;
24+
}
25+
26+
/// <summary>
27+
/// Invoked when the application is launched normally by the end user. Other entry points
28+
/// will be used when the application is launched to open a specific file, to display
29+
/// search results, and so forth.
30+
/// </summary>
31+
/// <param name="args">Details about the launch request and process.</param>
32+
protected override void OnLaunched(LaunchActivatedEventArgs args)
33+
{
34+
Frame rootFrame = Window.Current.Content as Frame;
35+
36+
// Do not repeat app initialization when the Window already has content,
37+
// just ensure that the window is active
38+
if (rootFrame == null)
39+
{
40+
// Create a Frame to act as the navigation context and navigate to the first page
41+
rootFrame = new Frame();
42+
43+
if (args.PreviousExecutionState == ApplicationExecutionState.Terminated)
44+
{
45+
//TODO: Load state from previously suspended application
46+
}
47+
48+
// Place the frame in the current Window
49+
Window.Current.Content = rootFrame;
50+
}
51+
52+
if (rootFrame.Content == null)
53+
{
54+
// When the navigation stack isn't restored navigate to the first page,
55+
// configuring the new page by passing required information as a navigation
56+
// parameter
57+
if (!rootFrame.Navigate(typeof(MainPage), args.Arguments))
58+
{
59+
throw new Exception("Failed to create initial page");
60+
}
61+
}
62+
// Ensure the current window is active
63+
Window.Current.Activate();
64+
}
65+
66+
/// <summary>
67+
/// Invoked when application execution is being suspended. Application state is saved
68+
/// without knowing whether the application will be terminated or resumed with the contents
69+
/// of memory still intact.
70+
/// </summary>
71+
/// <param name="sender">The source of the suspend request.</param>
72+
/// <param name="e">Details about the suspend request.</param>
73+
private void OnSuspending(object sender, SuspendingEventArgs e)
74+
{
75+
var deferral = e.SuspendingOperation.GetDeferral();
76+
//TODO: Save application state and stop any background activity
77+
deferral.Complete();
78+
}
79+
}
80+
}

SubSonic8/Assets/Logo.png

801 Bytes
Loading

SubSonic8/Assets/SmallLogo.png

329 Bytes
Loading

SubSonic8/Assets/SplashScreen.png

2.1 KB
Loading

SubSonic8/Assets/StoreLogo.png

429 Bytes
Loading

0 commit comments

Comments
 (0)