-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,358 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 2012 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Password Live", "PasswordLive\Password Live.csproj", "{0EA01B55-C0F0-4210-929F-43608D3AC2EE}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Debug|ARM = Debug|ARM | ||
Debug|x86 = Debug|x86 | ||
Release|Any CPU = Release|Any CPU | ||
Release|ARM = Release|ARM | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Debug|Any CPU.Deploy.0 = Debug|Any CPU | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Debug|ARM.ActiveCfg = Debug|ARM | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Debug|ARM.Build.0 = Debug|ARM | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Debug|ARM.Deploy.0 = Debug|ARM | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Debug|x86.ActiveCfg = Debug|x86 | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Debug|x86.Build.0 = Debug|x86 | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Debug|x86.Deploy.0 = Debug|x86 | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Release|Any CPU.Deploy.0 = Release|Any CPU | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Release|ARM.ActiveCfg = Release|ARM | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Release|ARM.Build.0 = Release|ARM | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Release|ARM.Deploy.0 = Release|ARM | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Release|x86.ActiveCfg = Release|x86 | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Release|x86.Build.0 = Release|x86 | ||
{0EA01B55-C0F0-4210-929F-43608D3AC2EE}.Release|x86.Deploy.0 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Application | ||
x:Class="PasswordLive.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" | ||
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"> | ||
|
||
<!--Application Resources--> | ||
<Application.Resources> | ||
</Application.Resources> | ||
|
||
<Application.ApplicationLifetimeObjects> | ||
<!--Required object that handles lifetime events for the application--> | ||
<shell:PhoneApplicationService | ||
Launching="Application_Launching" Closing="Application_Closing" | ||
Activated="Application_Activated" Deactivated="Application_Deactivated"/> | ||
</Application.ApplicationLifetimeObjects> | ||
|
||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Animation; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
using Microsoft.Phone.Controls; | ||
using Microsoft.Phone.Shell; | ||
|
||
namespace PasswordLive | ||
{ | ||
public partial class App : Application | ||
{ | ||
private static MainViewModel viewModel = null; | ||
|
||
public static MainViewModel ViewModel | ||
{ | ||
get | ||
{ | ||
if (viewModel == null) | ||
viewModel = new MainViewModel(); | ||
return viewModel; | ||
} | ||
} | ||
|
||
public PhoneApplicationFrame RootFrame { get; private set; } | ||
|
||
public App() | ||
{ | ||
UnhandledException += Application_UnhandledException; | ||
|
||
if (System.Diagnostics.Debugger.IsAttached) | ||
{ | ||
Application.Current.Host.Settings.EnableFrameRateCounter = true; | ||
} | ||
|
||
InitializeComponent(); | ||
|
||
InitializePhoneApplication(); | ||
} | ||
|
||
private void Application_Launching(object sender, LaunchingEventArgs e) | ||
{ | ||
} | ||
|
||
private void Application_Activated(object sender, ActivatedEventArgs e) | ||
{ | ||
if (!App.ViewModel.IsDataLoaded) | ||
{ | ||
App.ViewModel.LoadData(); | ||
} | ||
} | ||
|
||
private void Application_Deactivated(object sender, DeactivatedEventArgs e) | ||
{ | ||
} | ||
|
||
private void Application_Closing(object sender, ClosingEventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) | ||
{ | ||
if (System.Diagnostics.Debugger.IsAttached) | ||
{ | ||
System.Diagnostics.Debugger.Break(); | ||
} | ||
} | ||
|
||
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) | ||
{ | ||
if (System.Diagnostics.Debugger.IsAttached) | ||
{ | ||
System.Diagnostics.Debugger.Break(); | ||
} | ||
} | ||
|
||
#region Phone application initialization | ||
|
||
private bool phoneApplicationInitialized = false; | ||
|
||
private void InitializePhoneApplication() | ||
{ | ||
if (phoneApplicationInitialized) | ||
return; | ||
|
||
RootFrame = new PhoneApplicationFrame(); | ||
RootFrame.Navigated += CompleteInitializePhoneApplication; | ||
|
||
RootFrame.NavigationFailed += RootFrame_NavigationFailed; | ||
|
||
phoneApplicationInitialized = true; | ||
} | ||
|
||
private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e) | ||
{ | ||
if (RootVisual != RootFrame) | ||
RootVisual = RootFrame; | ||
|
||
RootFrame.Navigated -= CompleteInitializePhoneApplication; | ||
} | ||
|
||
#endregion | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.