diff --git a/.appveyor.yml b/.appveyor.yml index 67fda0fa..201faa07 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,13 +1,17 @@ -version: '1.7.{build}' -image: Visual Studio 2015 +version: '2.0.0-{build}' +image: Visual Studio 2017 before_build: - nuget restore Parse.sln build_script: - - msbuild /verbosity:quiet "Parse.sln" + project: Parse.sln + verbosity: minimal +before_test: + - choco install opencover.portable + - choco install codecov test_script: - - .\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -target:nunit-console.exe -register:user -targetargs:""C:\projects\parse-sdk-dotnet\ParseAnalytics\Test\bin\Debug\ParseAnalytics.Test.Unit.NetFx45.dll" "C:\projects\parse-sdk-dotnet\ParseCommon\Test\bin\Debug\ParseCommon.Test.Unit.NetFx45.dll" "C:\projects\parse-sdk-dotnet\ParseCore\Test\bin\Debug\ParseTest.Unit.NetFx45.dll" "C:\projects\parse-sdk-dotnet\ParsePush\Test\bin\Debug\ParseTest.Unit.NetFx45.dll" /noshadow" -filter:"" -output:parse_sdk_dotnet_coverage.xml + - OpenCover.Console.exe -target:dotnet.exe -targetargs:"test --test-adapter-path:. --logger:Appveyor /p:DebugType=full .\Parse.Test\Parse.Test.csproj" -filter:"+[Parse*]* -[Parse.Test*]*" -oldstyle -output:parse_sdk_dotnet_coverage.xml -register:user after_test: - - ps: | - $env:PATH = 'C:\msys64\usr\bin;' + $env:PATH - Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh - bash codecov.sh -f "parse_sdk_dotnet_coverage.xml" \ No newline at end of file + - codecov -f "parse_sdk_dotnet_coverage.xml" +artifacts: + - path: '**\*.nupkg' + name: Parse NuGet Package \ No newline at end of file diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 4a65e5d5..00000000 --- a/.editorconfig +++ /dev/null @@ -1,11 +0,0 @@ -root = true - -end_of_line = lf -insert_final_newline = true -charset = utf-8 - -indent_style = space -indent_size = 2 - -trim_trailing_whitespace = true - diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..1ff0c423 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore index 3320637e..3c4efe20 100644 --- a/.gitignore +++ b/.gitignore @@ -1,28 +1,53 @@ -# Build Folders (you can keep bin if you'd like, to store dlls and pdbs) -[Bb]in/ -[Oo]bj/ - -# mstest test results -TestResults - -# AppPackages for Win8 -AppPackages/ - ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. # User-specific files *.suo *.user +*.userosscache *.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) *.userprefs # Build results [Dd]ebug/ +[Dd]ebugPublic/ [Rr]elease/ +[Rr]eleases/ x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +project.fragment.lock.json +artifacts/ + *_i.c *_p.c +*_i.h *.ilk *.meta *.obj @@ -36,37 +61,69 @@ x64/ *.tli *.tlh *.tmp +*.tmp_proj *.log *.vspscc *.vssscc -*.pyc .builds -dist/ +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* # Visual C++ cache files ipch/ *.aps *.ncb +*.opendb *.opensdf *.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb # Visual Studio profiler *.psess *.vsp *.vspx +*.sap + +# TFS 2012 Local Workspace +$tf/ # Guidance Automation Toolkit *.gpState # ReSharper is a .NET coding add-in -_ReSharper* +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover # NCrunch -*.ncrunch* +_NCrunch_* .*crunch*.local.xml +nCrunchTemp_* -# Installshield output folder -[Ee]xpress +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ # DocProject is a documentation generator add-in DocProject/buildhelp/ @@ -79,39 +136,126 @@ DocProject/Help/Html2 DocProject/Help/html # Click-Once directory -publish +publish/ # Publish Web Output -*.Publish.xml +*.[Pp]ublish.xml +*.azurePubxml +# TODO: Comment the next line if you want to checkin your web deploy settings +# but database connection strings (with potential passwords) will be unencrypted +#*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ -# NuGet Packages Directory -packages/ +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config +# NuGet v3's project.json files produces more ignoreable files +*.nuget.props +*.nuget.targets -# Windows Azure Build Output -csx +# Microsoft Azure Build Output +csx/ *.build.csdef +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + # Others -[Bb]in -[Oo]bj -sql -TestResults -[Tt]est[Rr]esult* -*.Cache -ClientBin -[Ss]tyle[Cc]op.* +ClientBin/ ~$* +*~ *.dbmdl -Generated_Code #added for RIA/Silverlight projects +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +node_modules/ +orleans.codegen.cs + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml -# Include all files in Unity project templates. -!**/UnityProjectTemplate/** +# CodeRush +.cr/ -# idea files -.idea/ \ No newline at end of file +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc \ No newline at end of file diff --git a/.nuget/NuGet.Config b/.nuget/NuGet.Config index 67f8ea04..3f0e0034 100644 --- a/.nuget/NuGet.Config +++ b/.nuget/NuGet.Config @@ -1,6 +1,6 @@  - - - + + + \ No newline at end of file diff --git a/.nuget/NuGet.exe b/.nuget/NuGet.exe deleted file mode 100644 index 8dd7e45a..00000000 Binary files a/.nuget/NuGet.exe and /dev/null differ diff --git a/.nuget/NuGet.targets b/.nuget/NuGet.targets deleted file mode 100644 index bda5bea3..00000000 --- a/.nuget/NuGet.targets +++ /dev/null @@ -1,143 +0,0 @@ - - - - $(MSBuildProjectDirectory)\..\ - - - false - - - false - - - true - - - false - - - - - - - - - - $([System.IO.Path]::Combine($(SolutionDir), ".nuget")) - $([System.IO.Path]::Combine($(ProjectDir), "packages.config")) - $([System.IO.Path]::Combine($(SolutionDir), "packages")) - - - - - $(SolutionDir).nuget - packages.config - $(SolutionDir)packages - - - - - $(NuGetToolsPath)\nuget.exe - @(PackageSource) - - "$(NuGetExePath)" - mono --runtime=v4.0.30319 $(NuGetExePath) - - $(TargetDir.Trim('\\')) - - -RequireConsent - - $(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -o "$(PackagesDir)" - $(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols - - - - RestorePackages; - $(BuildDependsOn); - - - - - $(BuildDependsOn); - BuildPackage; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.nuget/packages.config b/.nuget/packages.config deleted file mode 100644 index ffbe7077..00000000 --- a/.nuget/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/AssemblyLister/AssemblyLister.NetFx/AssemblyLister.NetFx.csproj b/AssemblyLister/AssemblyLister.NetFx/AssemblyLister.NetFx.csproj deleted file mode 100644 index 2a780e58..00000000 --- a/AssemblyLister/AssemblyLister.NetFx/AssemblyLister.NetFx.csproj +++ /dev/null @@ -1,55 +0,0 @@ - - - - - Debug - AnyCPU - {4BBCE4F8-C097-4680-8B07-B69D567EAA5B} - Library - Properties - AssemblyLister - AssemblyLister - v4.5 - 512 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/AssemblyLister/AssemblyLister.NetFx/AssemblyLister.cs b/AssemblyLister/AssemblyLister.NetFx/AssemblyLister.cs deleted file mode 100644 index 457fbeab..00000000 --- a/AssemblyLister/AssemblyLister.NetFx/AssemblyLister.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; - -namespace AssemblyLister { - /// - /// A class that lets you list all loaded assemblies in a PCL-compliant way. - /// - public static class Lister { - /// - /// Get all of the assemblies used by this application. - /// - public static IEnumerable AllAssemblies { - get { - // For each of the loaded assemblies, deeply walk all of their references. - HashSet seen = new HashSet(); - return AppDomain.CurrentDomain.GetAssemblies().SelectMany(asm => asm.DeepWalkReferences(seen)); - } - } - - private static IEnumerable DeepWalkReferences(this Assembly assembly, HashSet seen = null) { - seen = seen ?? new HashSet(); - - if (!seen.Add(assembly.FullName)) { - return Enumerable.Empty(); - } - - List assemblies = new List(); - assemblies.Add(assembly); - - foreach (var reference in assembly.GetReferencedAssemblies()) { - if (seen.Contains(reference.FullName)) - continue; - - Assembly referencedAsm = Assembly.Load(reference); - assemblies.AddRange(referencedAsm.DeepWalkReferences(seen)); - } - - return assemblies; - } - } -} diff --git a/AssemblyLister/AssemblyLister.NetFx/Properties/AssemblyInfo.cs b/AssemblyLister/AssemblyLister.NetFx/Properties/AssemblyInfo.cs deleted file mode 100644 index 7d88454b..00000000 --- a/AssemblyLister/AssemblyLister.NetFx/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System.Resources; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("AssemblyLister")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("AssemblyLister")] -[assembly: AssemblyCopyright("Copyright © 2016")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: NeutralResourcesLanguage("en")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AssemblyLister/AssemblyLister.Portable/AssemblyLister.Portable.csproj b/AssemblyLister/AssemblyLister.Portable/AssemblyLister.Portable.csproj deleted file mode 100644 index e546ddcd..00000000 --- a/AssemblyLister/AssemblyLister.Portable/AssemblyLister.Portable.csproj +++ /dev/null @@ -1,51 +0,0 @@ - - - - - 10.0 - Debug - AnyCPU - {EA65343F-7FED-450B-A1D6-3215B33B3563} - Library - Properties - AssemblyLister - AssemblyLister - en-US - 512 - {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Profile136 - v4.0 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - \ No newline at end of file diff --git a/AssemblyLister/AssemblyLister.Portable/AssemblyLister.cs b/AssemblyLister/AssemblyLister.Portable/AssemblyLister.cs deleted file mode 100644 index eb8bc066..00000000 --- a/AssemblyLister/AssemblyLister.Portable/AssemblyLister.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; - -namespace AssemblyLister { - /// - /// A class that lets you list all loaded assemblies in a PCL-compliant way. - /// - public static class Lister { - /// - /// Get all of the assemblies used by this application. - /// - public static IEnumerable AllAssemblies { - get { - throw new Exception("Cannot use the portable version of AssemblyLister in an end-program. Please add a reference to AssemblyLister via NuGet to your final Application."); - } - } - } -} diff --git a/AssemblyLister/AssemblyLister.Portable/Properties/AssemblyInfo.cs b/AssemblyLister/AssemblyLister.Portable/Properties/AssemblyInfo.cs deleted file mode 100644 index 7d88454b..00000000 --- a/AssemblyLister/AssemblyLister.Portable/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System.Resources; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("AssemblyLister")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("AssemblyLister")] -[assembly: AssemblyCopyright("Copyright © 2016")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: NeutralResourcesLanguage("en")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AssemblyLister/AssemblyLister.UWP/AssemblyLister.UWP.csproj b/AssemblyLister/AssemblyLister.UWP/AssemblyLister.UWP.csproj deleted file mode 100644 index 6a8c1c23..00000000 --- a/AssemblyLister/AssemblyLister.UWP/AssemblyLister.UWP.csproj +++ /dev/null @@ -1,55 +0,0 @@ - - - - - 12.0 - Debug - AnyCPU - {129331F5-2DAB-4301-BE2D-3C7145C08B46} - Library - Properties - AssemblyLister - AssemblyLister - en-US - 512 - {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Profile32 - v4.6 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/AssemblyLister/AssemblyLister.UWP/AssemblyLister.cs b/AssemblyLister/AssemblyLister.UWP/AssemblyLister.cs deleted file mode 100644 index 463ff199..00000000 --- a/AssemblyLister/AssemblyLister.UWP/AssemblyLister.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Reflection; -using System.Threading.Tasks; -using Windows.ApplicationModel; -using Windows.UI.Xaml; - -namespace AssemblyLister { - /// - /// A class that lets you list all loaded assemblies in a PCL-compliant way. - /// - public static class Lister { - /// - /// Get all of the assemblies used by this application. - /// - public static IEnumerable AllAssemblies { - get { - Task> assembliesTask = Task.Run(async () => { - List results = new List(); - - var folder = Package.Current.InstalledLocation; - foreach (var file in await folder.GetFilesAsync().AsTask().ConfigureAwait(false)) { - if (file.FileType == ".dll") { - var assemblyName = new AssemblyName(file.DisplayName); - - try { - var assembly = Assembly.Load(assemblyName); - results.Add(assembly); - } catch (Exception) { - // Ignore... - } - } - } - return results; - }); - - // While we asynchronously load, give back the one assembly we know to exist (i.e. the one with the main application). - var currentAssembly = Application.Current.GetType().GetTypeInfo().Assembly; - yield return currentAssembly; - - assembliesTask.Wait(); - foreach (Assembly asm in assembliesTask.Result) { - yield return asm; - } - } - } - } -} diff --git a/AssemblyLister/AssemblyLister.UWP/Properties/AssemblyInfo.cs b/AssemblyLister/AssemblyLister.UWP/Properties/AssemblyInfo.cs deleted file mode 100644 index 7d88454b..00000000 --- a/AssemblyLister/AssemblyLister.UWP/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System.Resources; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("AssemblyLister")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("AssemblyLister")] -[assembly: AssemblyCopyright("Copyright © 2016")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: NeutralResourcesLanguage("en")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AssemblyLister/AssemblyLister.Unity/AssemblyLister.Unity.csproj b/AssemblyLister/AssemblyLister.Unity/AssemblyLister.Unity.csproj deleted file mode 100644 index f0f7ea71..00000000 --- a/AssemblyLister/AssemblyLister.Unity/AssemblyLister.Unity.csproj +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Debug - AnyCPU - {693A621E-FF3C-400F-B69D-382ACD50EDA7} - Library - Properties - AssemblyLister - AssemblyLister - v3.5 - 512 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/AssemblyLister/AssemblyLister.Unity/AssemblyLister.cs b/AssemblyLister/AssemblyLister.Unity/AssemblyLister.cs deleted file mode 100644 index e339f970..00000000 --- a/AssemblyLister/AssemblyLister.Unity/AssemblyLister.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Reflection; -using System.Linq; - -namespace AssemblyLister { - /// - /// A class that lets you list all loaded assemblies in a PCL-compliant way. - /// - public static class Lister { - /// - /// Get all of the assemblies used by this application. - /// - public static IEnumerable AllAssemblies { - get { - // For each of the loaded assemblies, deeply walk all of their references. - HashSet seen = new HashSet(); - return AppDomain.CurrentDomain.GetAssemblies().SelectMany(asm => asm.DeepWalkReferences(seen)); - } - } - - private static IEnumerable DeepWalkReferences(this Assembly assembly, HashSet seen = null) { - seen = seen ?? new HashSet(); - - if (!seen.Add(assembly.FullName)) { - return Enumerable.Empty(); - } - - List assemblies = new List(); - assemblies.Add(assembly); - - foreach (var reference in assembly.GetReferencedAssemblies()) { - if (seen.Contains(reference.FullName)) - continue; - - Assembly referencedAsm = Assembly.Load(reference); - assemblies.AddRange(referencedAsm.DeepWalkReferences(seen)); - } - - return assemblies; - } - } -} diff --git a/AssemblyLister/AssemblyLister.Unity/Properties/AssemblyInfo.cs b/AssemblyLister/AssemblyLister.Unity/Properties/AssemblyInfo.cs deleted file mode 100644 index 7d88454b..00000000 --- a/AssemblyLister/AssemblyLister.Unity/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System.Resources; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("AssemblyLister")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("AssemblyLister")] -[assembly: AssemblyCopyright("Copyright © 2016")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: NeutralResourcesLanguage("en")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AssemblyLister/AssemblyLister.nuspec b/AssemblyLister/AssemblyLister.nuspec deleted file mode 100644 index f4798987..00000000 --- a/AssemblyLister/AssemblyLister.nuspec +++ /dev/null @@ -1,31 +0,0 @@ - - - - AssemblyLister - 1.0.0 - Parse - Parse - http://www.parse.com - false - A helper utility for listing the assemblies referenced of a program. - Copyright 2016 - TODO FILLME - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/.gitignore b/Parse.StarterProjects/.gitignore deleted file mode 100644 index 0d0fe240..00000000 --- a/Parse.StarterProjects/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -lib/ -CSharp/*Unity*/Assets/Parse/ -CSharp/*Unity*/Library diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject.sln b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject.sln deleted file mode 100644 index 54fdf4b9..00000000 --- a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParseAndroidStarterProject", "ParseAndroidStarterProject\ParseAndroidStarterProject.csproj", "{C899FFC5-3B90-4323-868F-940E1BBCEF9F}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C899FFC5-3B90-4323-868F-940E1BBCEF9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C899FFC5-3B90-4323-868F-940E1BBCEF9F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C899FFC5-3B90-4323-868F-940E1BBCEF9F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C899FFC5-3B90-4323-868F-940E1BBCEF9F}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution - StartupItem = ParseAndroidStarterProject\ParseAndroidStarterProject.csproj - EndGlobalSection -EndGlobal diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/App.cs b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/App.cs deleted file mode 100644 index 80056f94..00000000 --- a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/App.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using Android.App; -using Android.Runtime; -using Parse; - -namespace ParseAndroidStarterProject -{ - [Application] - public class App : Application - { - public App (IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer) - { - } - - public override void OnCreate () - { - base.OnCreate (); - - // Initialize the Parse client with your Application ID and .NET Key found on - // your Parse dashboard - ParseClient.Initialize("YOUR APPLICATION ID", "YOUR .NET KEY"); - } - } -} diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Assets/AboutAssets.txt b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Assets/AboutAssets.txt deleted file mode 100644 index ee398862..00000000 --- a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Assets/AboutAssets.txt +++ /dev/null @@ -1,19 +0,0 @@ -Any raw assets you want to be deployed with your application can be placed in -this directory (and child directories) and given a Build Action of "AndroidAsset". - -These files will be deployed with you package and will be accessible using Android's -AssetManager, like this: - -public class ReadAsset : Activity -{ - protected override void OnCreate (Bundle bundle) - { - base.OnCreate (bundle); - - InputStream input = Assets.Open ("my_asset.txt"); - } -} - -Additionally, some Android functions will automatically load asset files: - -Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/MainActivity.cs b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/MainActivity.cs deleted file mode 100644 index da00b2a3..00000000 --- a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/MainActivity.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; - -using Android.App; -using Android.Content; -using Android.Runtime; -using Android.Views; -using Android.Widget; -using Android.OS; - -using Parse; - -namespace ParseAndroidStarterProject -{ - [Activity (Label = "ParseAndroidStarterProject", MainLauncher = true)] - public class Activity1 : Activity - { - protected override void OnCreate (Bundle bundle) - { - base.OnCreate (bundle); - - // Set our view from the "main" layout resource - SetContentView (Resource.Layout.Main); - } - } -} - - diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/ParseAndroidStarterProject.csproj b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/ParseAndroidStarterProject.csproj deleted file mode 100644 index d4475d30..00000000 --- a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/ParseAndroidStarterProject.csproj +++ /dev/null @@ -1,75 +0,0 @@ - - - - Debug - AnyCPU - 10.0.0 - 2.0 - {C899FFC5-3B90-4323-868F-940E1BBCEF9F} - {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Library - ParseAndroidStarterProject - Resources - Assets - Resource - True - Resources\Resource.designer.cs - ParseAndroidStarterProject - Properties\AndroidManifest.xml - - - v5.0 - - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - false - None - - - none - true - bin\Release - prompt - 4 - false - false - SdkOnly - armeabi;armeabi-v7a;x86 - - - - - - - - lib\Parse.Android.dll - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Properties/AndroidManifest.xml b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Properties/AndroidManifest.xml deleted file mode 100644 index c9407def..00000000 --- a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Properties/AndroidManifest.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Properties/AssemblyInfo.cs b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Properties/AssemblyInfo.cs deleted file mode 100644 index 1d9a66b4..00000000 --- a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using Android.App; - -// Information about this assembly is defined by the following attributes. -// Change them to the values specific to your project. - -[assembly: AssemblyTitle("ParseAndroidStarterProject")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("David")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". -// The form "{Major}.{Minor}.*" will automatically update the build and revision, -// and "{Major}.{Minor}.{Build}.*" will update just the revision. - -[assembly: AssemblyVersion("1.0.0")] - -// The following attributes are used to specify the signing key for the assembly, -// if desired. See the Mono documentation for more information about signing. - -//[assembly: AssemblyDelaySign(false)] -//[assembly: AssemblyKeyFile("")] - diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/AboutResources.txt b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/AboutResources.txt deleted file mode 100644 index 4d315401..00000000 --- a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/AboutResources.txt +++ /dev/null @@ -1,44 +0,0 @@ -Images, layout descriptions, binary blobs and string dictionaries can be included -in your application as resource files. Various Android APIs are designed to -operate on the resource IDs instead of dealing with images, strings or binary blobs -directly. - -For example, a sample Android app that contains a user interface layout (main.axml), -an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) -would keep its resources in the "Resources" directory of the application: - -Resources/ - drawable/ - icon.png - - layout/ - main.axml - - values/ - strings.xml - -In order to get the build system to recognize Android resources, set the build action to -"AndroidResource". The native Android APIs do not operate directly with filenames, but -instead operate on resource IDs. When you compile an Android application that uses resources, -the build system will package the resources for distribution and generate a class called "R" -(this is an Android convention) that contains the tokens for each one of the resources -included. For example, for the above Resources layout, this is what the R class would expose: - -public class R { - public class drawable { - public const int icon = 0x123; - } - - public class layout { - public const int main = 0x456; - } - - public class strings { - public const int first_string = 0xabc; - public const int second_string = 0xbcd; - } -} - -You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main -to reference the layout/main.axml file, or R.strings.first_string to reference the first -string in the dictionary file values/strings.xml. diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/Resource.designer.cs b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/Resource.designer.cs deleted file mode 100644 index 1c100ecb..00000000 --- a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/Resource.designer.cs +++ /dev/null @@ -1,112 +0,0 @@ -#pragma warning disable 1591 -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.34014 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -[assembly: global::Android.Runtime.ResourceDesignerAttribute("ParseAndroidStarterProject.Resource", IsApplication=true)] - -namespace ParseAndroidStarterProject -{ - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] - public partial class Resource - { - - static Resource() - { - global::Android.Runtime.ResourceIdManager.UpdateIdValues(); - } - - public static void UpdateIdValues() - { - } - - public partial class Attribute - { - - static Attribute() - { - global::Android.Runtime.ResourceIdManager.UpdateIdValues(); - } - - private Attribute() - { - } - } - - public partial class Drawable - { - - // aapt resource value: 0x7f020000 - public const int Icon = 2130837504; - - static Drawable() - { - global::Android.Runtime.ResourceIdManager.UpdateIdValues(); - } - - private Drawable() - { - } - } - - public partial class Id - { - - // aapt resource value: 0x7f050000 - public const int welcomeTextView = 2131034112; - - static Id() - { - global::Android.Runtime.ResourceIdManager.UpdateIdValues(); - } - - private Id() - { - } - } - - public partial class Layout - { - - // aapt resource value: 0x7f030000 - public const int Main = 2130903040; - - static Layout() - { - global::Android.Runtime.ResourceIdManager.UpdateIdValues(); - } - - private Layout() - { - } - } - - public partial class String - { - - // aapt resource value: 0x7f040001 - public const int app_name = 2130968577; - - // aapt resource value: 0x7f040000 - public const int welcome = 2130968576; - - static String() - { - global::Android.Runtime.ResourceIdManager.UpdateIdValues(); - } - - private String() - { - } - } - } -} -#pragma warning restore 1591 diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/drawable/Icon.png b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/drawable/Icon.png deleted file mode 100644 index a07c69fa..00000000 Binary files a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/drawable/Icon.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/layout/Main.axml b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/layout/Main.axml deleted file mode 100644 index a3ee64f3..00000000 --- a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/layout/Main.axml +++ /dev/null @@ -1,16 +0,0 @@ - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/values/Strings.xml b/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/values/Strings.xml deleted file mode 100644 index 76f4906b..00000000 --- a/Parse.StarterProjects/CSharp/ParseAndroidStarterProject/ParseAndroidStarterProject/Resources/values/Strings.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - You\'re all set with Parse! - ParseAndroidStarterProject - diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample.sln b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample.sln deleted file mode 100644 index 0f182437..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample.sln +++ /dev/null @@ -1,38 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParsePhonePushSample", "ParsePhonePushSample\ParsePhonePushSample.csproj", "{9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}" -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 - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Debug|Any CPU.Deploy.0 = Debug|Any CPU - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Debug|ARM.ActiveCfg = Debug|ARM - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Debug|ARM.Build.0 = Debug|ARM - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Debug|ARM.Deploy.0 = Debug|ARM - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Debug|x86.ActiveCfg = Debug|x86 - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Debug|x86.Build.0 = Debug|x86 - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Debug|x86.Deploy.0 = Debug|x86 - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Release|Any CPU.Build.0 = Release|Any CPU - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Release|Any CPU.Deploy.0 = Release|Any CPU - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Release|ARM.ActiveCfg = Release|ARM - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Release|ARM.Build.0 = Release|ARM - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Release|ARM.Deploy.0 = Release|ARM - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Release|x86.ActiveCfg = Release|x86 - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Release|x86.Build.0 = Release|x86 - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F}.Release|x86.Deploy.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/App.xaml b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/App.xaml deleted file mode 100644 index b64c45cb..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/App.xaml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/App.xaml.cs b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/App.xaml.cs deleted file mode 100644 index e8b60339..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/App.xaml.cs +++ /dev/null @@ -1,213 +0,0 @@ -using System; -using System.Diagnostics; -using System.Resources; -using System.Windows; -using System.Windows.Markup; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using ParsePhonePushSample.Resources; -using Parse; - -namespace ParsePhonePushSample { - public partial class App : Application { - /// - /// Provides easy access to the root frame of the Phone Application. - /// - /// The root frame of the Phone Application. - public static PhoneApplicationFrame RootFrame { get; private set; } - - /// - /// Constructor for the Application object. - /// - public App() { - // Initialize the Parse client with your Application ID and Windows Key found on - // your Parse dashboard - ParseClient.Initialize("YOUR APPLICATION ID", "YOUR .NET KEY"); - - this.Startup += (sender, args) => { - ParseAnalytics.TrackAppOpens(RootFrame); - }; - - - // Global handler for uncaught exceptions. - UnhandledException += Application_UnhandledException; - - // Standard XAML initialization - InitializeComponent(); - - // Phone-specific initialization - InitializePhoneApplication(); - - // Language display initialization - InitializeLanguage(); - - // Show graphics profiling information while debugging. - if (Debugger.IsAttached) { - // Display the current frame rate counters. - Application.Current.Host.Settings.EnableFrameRateCounter = true; - - // Show the areas of the app that are being redrawn in each frame. - //Application.Current.Host.Settings.EnableRedrawRegions = true; - - // Enable non-production analysis visualization mode, - // which shows areas of a page that are handed off to GPU with a colored overlay. - //Application.Current.Host.Settings.EnableCacheVisualization = true; - - // Prevent the screen from turning off while under the debugger by disabling - // the application's idle detection. - // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run - // and consume battery power when the user is not using the phone. - PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; - } - - } - - // Code to execute when the application is launching (eg, from Start) - // This code will not execute when the application is reactivated - private void Application_Launching(object sender, LaunchingEventArgs e) { - Console.WriteLine("Application Launching"); - } - - // Code to execute when the application is activated (brought to foreground) - // This code will not execute when the application is first launched - private void Application_Activated(object sender, ActivatedEventArgs e) { - Console.WriteLine("Application Activated"); - } - - // Code to execute when the application is deactivated (sent to background) - // This code will not execute when the application is closing - private void Application_Deactivated(object sender, DeactivatedEventArgs e) { - } - - // Code to execute when the application is closing (eg, user hit Back) - // This code will not execute when the application is deactivated - private void Application_Closing(object sender, ClosingEventArgs e) { - } - - // Code to execute if a navigation fails - private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) { - if (Debugger.IsAttached) { - // A navigation has failed; break into the debugger - Debugger.Break(); - } - } - - // Code to execute on Unhandled Exceptions - private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { - if (Debugger.IsAttached) { - // An unhandled exception has occurred; break into the debugger - Debugger.Break(); - } - } - - #region Phone application initialization - - // Avoid double-initialization - private bool phoneApplicationInitialized = false; - - // Do not add any additional code to this method - private void InitializePhoneApplication() { - if (phoneApplicationInitialized) - return; - - // Create the frame but don't set it as RootVisual yet; this allows the splash - // screen to remain active until the application is ready to render. - RootFrame = new PhoneApplicationFrame(); - RootFrame.Navigated += CompleteInitializePhoneApplication; - - // Handle navigation failures - RootFrame.NavigationFailed += RootFrame_NavigationFailed; - - // Handle reset requests for clearing the backstack - RootFrame.Navigated += CheckForResetNavigation; - - // Ensure we don't initialize again - phoneApplicationInitialized = true; - } - - // Do not add any additional code to this method - private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e) { - // Set the root visual to allow the application to render - if (RootVisual != RootFrame) - RootVisual = RootFrame; - - // Remove this handler since it is no longer needed - RootFrame.Navigated -= CompleteInitializePhoneApplication; - } - - private void CheckForResetNavigation(object sender, NavigationEventArgs e) { - // If the app has received a 'reset' navigation, then we need to check - // on the next navigation to see if the page stack should be reset - if (e.NavigationMode == NavigationMode.Reset) - RootFrame.Navigated += ClearBackStackAfterReset; - } - - private void ClearBackStackAfterReset(object sender, NavigationEventArgs e) { - // Unregister the event so it doesn't get called again - RootFrame.Navigated -= ClearBackStackAfterReset; - - // Only clear the stack for 'new' (forward) and 'refresh' navigations - if (e.NavigationMode != NavigationMode.New && e.NavigationMode != NavigationMode.Refresh) - return; - - // For UI consistency, clear the entire page stack - while (RootFrame.RemoveBackEntry() != null) { - ; // do nothing - } - } - - #endregion - - // Initialize the app's font and flow direction as defined in its localized resource strings. - // - // To ensure that the font of your application is aligned with its supported languages and that the - // FlowDirection for each of those languages follows its traditional direction, ResourceLanguage - // and ResourceFlowDirection should be initialized in each resx file to match these values with that - // file's culture. For example: - // - // AppResources.es-ES.resx - // ResourceLanguage's value should be "es-ES" - // ResourceFlowDirection's value should be "LeftToRight" - // - // AppResources.ar-SA.resx - // ResourceLanguage's value should be "ar-SA" - // ResourceFlowDirection's value should be "RightToLeft" - // - // For more info on localizing Windows Phone apps see http://go.microsoft.com/fwlink/?LinkId=262072. - // - private void InitializeLanguage() { - try { - // Set the font to match the display language defined by the - // ResourceLanguage resource string for each supported language. - // - // Fall back to the font of the neutral language if the Display - // language of the phone is not supported. - // - // If a compiler error is hit then ResourceLanguage is missing from - // the resource file. - RootFrame.Language = XmlLanguage.GetLanguage(AppResources.ResourceLanguage); - - // Set the FlowDirection of all elements under the root frame based - // on the ResourceFlowDirection resource string for each - // supported language. - // - // If a compiler error is hit then ResourceFlowDirection is missing from - // the resource file. - FlowDirection flow = (FlowDirection)Enum.Parse(typeof(FlowDirection), AppResources.ResourceFlowDirection); - RootFrame.FlowDirection = flow; - } catch { - // If an exception is caught here it is most likely due to either - // ResourceLangauge not being correctly set to a supported language - // code or ResourceFlowDirection is set to a value other than LeftToRight - // or RightToLeft. - - if (Debugger.IsAttached) { - Debugger.Break(); - } - - throw; - } - } - } -} \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/AlignmentGrid.png b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/AlignmentGrid.png deleted file mode 100644 index f7d2e978..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/AlignmentGrid.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/ApplicationIcon.png b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/ApplicationIcon.png deleted file mode 100644 index 7d95d4e0..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/ApplicationIcon.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/FlipCycleTileLarge.png b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/FlipCycleTileLarge.png deleted file mode 100644 index e0c59ac0..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/FlipCycleTileLarge.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/FlipCycleTileMedium.png b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/FlipCycleTileMedium.png deleted file mode 100644 index e93b89d6..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/FlipCycleTileMedium.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/FlipCycleTileSmall.png b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/FlipCycleTileSmall.png deleted file mode 100644 index 550b1b5e..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/FlipCycleTileSmall.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/IconicTileMediumLarge.png b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/IconicTileMediumLarge.png deleted file mode 100644 index 686e6b53..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/IconicTileMediumLarge.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/IconicTileSmall.png b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/IconicTileSmall.png deleted file mode 100644 index d4b5ede1..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Assets/Tiles/IconicTileSmall.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/LocalizedStrings.cs b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/LocalizedStrings.cs deleted file mode 100644 index 72f48ec4..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/LocalizedStrings.cs +++ /dev/null @@ -1,12 +0,0 @@ -using ParsePhonePushSample.Resources; - -namespace ParsePhonePushSample { - /// - /// Provides access to string resources. - /// - public class LocalizedStrings { - private static AppResources _localizedResources = new AppResources(); - - public AppResources LocalizedResources { get { return _localizedResources; } } - } -} \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/MainPage.xaml b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/MainPage.xaml deleted file mode 100644 index ce109b5d..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/MainPage.xaml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/MainPage.xaml.cs b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/MainPage.xaml.cs deleted file mode 100644 index 8d88ef38..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/MainPage.xaml.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using ParsePhonePushSample.Resources; -using Parse; -using Microsoft.Phone.Notification; - -namespace ParsePhonePushSample { - public partial class MainPage : PhoneApplicationPage { - // Constructor - public MainPage() { - ParsePush.ToastNotificationReceived += (sender, args) => { - string title = null; - string alert = null; - args.Collection.TryGetValue("wp:Text1", out title); - args.Collection.TryGetValue("wp:Text2", out alert); - Status.Text += "\nReceived push."; - if (title != null) { - Status.Text += " Title: " + title; - } - if (alert != null) { - Status.Text += " Alert: " + alert; - } - }; - - InitializeComponent(); - - // Sample code to localize the ApplicationBar - //BuildLocalizedApplicationBar(); - } - - protected override async void OnNavigatedTo(NavigationEventArgs e) { - var installation = ParseInstallation.CurrentInstallation; - Status.Text += "Saving the current installation"; - await installation.SaveAsync(); - Status.Text += "\nDone saving the current installation"; - if (!installation.ContainsKey("deviceUris")) { - Status.Text += "\nThe ParseInstallation does not have a push channel. " + - "Please be sure you have the ID_CAP_PUSH_NOTIFICATION capability"; - } else if (installation.Get>("deviceUris").ContainsKey("_Toast")) { - Status.Text += "\nYour device is ready to receive toast notifications"; - } - } - - private async void Send_Click(object sender, RoutedEventArgs e) { - Status.Text += "\nSending push to all subscribers..."; - await ParsePush.SendDataAsync(new Dictionary { - {"title", PushTitle.Text}, - {"alert", PushAlert.Text}, - }); - Status.Text += "\nDone sending push."; - } - } -} \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/ParsePhonePushSample.csproj b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/ParsePhonePushSample.csproj deleted file mode 100644 index d93e4e6c..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/ParsePhonePushSample.csproj +++ /dev/null @@ -1,174 +0,0 @@ - - - - Debug - AnyCPU - 10.0.20506 - 2.0 - {9E2B70F0-0002-4E7F-8A66-130ADAFEE29F} - {C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - Properties - ParsePhonePushSample - ParsePhonePush - WindowsPhone - v8.0 - $(TargetFrameworkVersion) - true - - - true - true - ParsePhonePushSample_$(Configuration)_$(Platform).xap - Properties\AppManifest.xml - ParsePhonePushSample.App - true - 11.0 - true - - - true - full - false - Bin\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - true - full - false - Bin\x86\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\x86\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - true - full - false - Bin\ARM\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\ARM\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - - - - - - - - App.xaml - - - - MainPage.xaml - - - - True - True - AppResources.resx - - - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - - - - Designer - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - PublicResXFileCodeGenerator - AppResources.Designer.cs - - - - - ..\..\ParsePhoneStarterProject\ParsePhoneStarterProject\lib\Parse.dll - - - ..\..\ParsePhoneStarterProject\ParsePhoneStarterProject\lib\Parse.Phone.dll - - - - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Properties/AppManifest.xml b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Properties/AppManifest.xml deleted file mode 100644 index 6712a117..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Properties/AppManifest.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Properties/AssemblyInfo.cs b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Properties/AssemblyInfo.cs deleted file mode 100644 index 2a1e8cf4..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Resources; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("ParsePhonePushSample")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ParsePhonePushSample")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("2ad61a5a-9403-4a7e-96b3-1098b91559bc")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: NeutralResourcesLanguageAttribute("en-US")] diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Properties/WMAppManifest.xml b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Properties/WMAppManifest.xml deleted file mode 100644 index 728ec3e3..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Properties/WMAppManifest.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - Assets\ApplicationIcon.png - - - - - - - - - - - - - - - Assets\Tiles\FlipCycleTileSmall.png - 0 - Assets\Tiles\FlipCycleTileMedium.png - ParsePhonePushSample - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Resources/AppResources.Designer.cs b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Resources/AppResources.Designer.cs deleted file mode 100644 index adb11070..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Resources/AppResources.Designer.cs +++ /dev/null @@ -1,108 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.17626 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace ParsePhonePushSample.Resources { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class AppResources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal AppResources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ParsePhonePushSample.Resources.AppResources", typeof(AppResources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to LeftToRight. - /// - public static string ResourceFlowDirection { - get { - return ResourceManager.GetString("ResourceFlowDirection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to us-EN. - /// - public static string ResourceLanguage { - get { - return ResourceManager.GetString("ResourceLanguage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to MY APPLICATION. - /// - public static string ApplicationTitle { - get { - return ResourceManager.GetString("ApplicationTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to button. - /// - public static string AppBarButtonText { - get { - return ResourceManager.GetString("AppBarButtonText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to menu item. - /// - public static string AppBarMenuItemText { - get { - return ResourceManager.GetString("AppBarMenuItemText", resourceCulture); - } - } - } -} diff --git a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Resources/AppResources.resx b/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Resources/AppResources.resx deleted file mode 100644 index 529a1943..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhonePushSample/ParsePhonePushSample/Resources/AppResources.resx +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - LeftToRight - Controls the FlowDirection for all elements in the RootFrame. Set to the traditional direction of this resource file's language - - - en-US - Controls the Language and ensures that the font for all elements in the RootFrame aligns with the app's language. Set to the language code of this resource file's language. - - - MY APPLICATION - - - add - - - Menu Item - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject.sln b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject.sln deleted file mode 100644 index e0c7441e..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject.sln +++ /dev/null @@ -1,38 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParsePhoneStarterProject", "ParsePhoneStarterProject\ParsePhoneStarterProject.csproj", "{0F8E6531-F41D-4220-882C-E747EC1A14BF}" -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 - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Debug|Any CPU.Deploy.0 = Debug|Any CPU - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Debug|ARM.ActiveCfg = Debug|ARM - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Debug|ARM.Build.0 = Debug|ARM - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Debug|ARM.Deploy.0 = Debug|ARM - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Debug|x86.ActiveCfg = Debug|x86 - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Debug|x86.Build.0 = Debug|x86 - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Debug|x86.Deploy.0 = Debug|x86 - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Release|Any CPU.Build.0 = Release|Any CPU - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Release|Any CPU.Deploy.0 = Release|Any CPU - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Release|ARM.ActiveCfg = Release|ARM - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Release|ARM.Build.0 = Release|ARM - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Release|ARM.Deploy.0 = Release|ARM - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Release|x86.ActiveCfg = Release|x86 - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Release|x86.Build.0 = Release|x86 - {0F8E6531-F41D-4220-882C-E747EC1A14BF}.Release|x86.Deploy.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/App.xaml b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/App.xaml deleted file mode 100644 index 773f0e2d..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/App.xaml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/App.xaml.cs b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/App.xaml.cs deleted file mode 100644 index 85456202..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/App.xaml.cs +++ /dev/null @@ -1,206 +0,0 @@ -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using Parse; -using ParsePhoneStarterProject.Resources; -using System; -using System.Diagnostics; -using System.Resources; -using System.Windows; -using System.Windows.Markup; -using System.Windows.Navigation; - -namespace ParsePhoneStarterProject { - public partial class App : Application { - /// - /// Provides easy access to the root frame of the Phone Application. - /// - /// The root frame of the Phone Application. - public static PhoneApplicationFrame RootFrame { get; private set; } - - /// - /// Constructor for the Application object. - /// - public App() { - // Global handler for uncaught exceptions. - UnhandledException += Application_UnhandledException; - - // Standard XAML initialization - InitializeComponent(); - - // Phone-specific initialization - InitializePhoneApplication(); - - // Language display initialization - InitializeLanguage(); - - // Show graphics profiling information while debugging. - if (Debugger.IsAttached) { - // Display the current frame rate counters. - Application.Current.Host.Settings.EnableFrameRateCounter = true; - - // Show the areas of the app that are being redrawn in each frame. - //Application.Current.Host.Settings.EnableRedrawRegions = true; - - // Enable non-production analysis visualization mode, - // which shows areas of a page that are handed off to GPU with a colored overlay. - //Application.Current.Host.Settings.EnableCacheVisualization = true; - - // Prevent the screen from turning off while under the debugger by disabling - // the application's idle detection. - // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run - // and consume battery power when the user is not using the phone. - PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; - } - - // Initialize the Parse client with your Application ID and .NET Key found on - // your Parse dashboard - ParseClient.Initialize("YOUR APPLICATION ID", "YOUR .NET KEY"); - } - - // Code to execute when the application is launching (eg, from Start) - // This code will not execute when the application is reactivated - private async void Application_Launching(object sender, LaunchingEventArgs e) { - await ParseAnalytics.TrackAppOpenedAsync(); - } - - // Code to execute when the application is activated (brought to foreground) - // This code will not execute when the application is first launched - private void Application_Activated(object sender, ActivatedEventArgs e) { - } - - // Code to execute when the application is deactivated (sent to background) - // This code will not execute when the application is closing - private void Application_Deactivated(object sender, DeactivatedEventArgs e) { - } - - // Code to execute when the application is closing (eg, user hit Back) - // This code will not execute when the application is deactivated - private void Application_Closing(object sender, ClosingEventArgs e) { - } - - // Code to execute if a navigation fails - private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) { - if (Debugger.IsAttached) { - // A navigation has failed; break into the debugger - Debugger.Break(); - } - } - - // Code to execute on Unhandled Exceptions - private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { - if (Debugger.IsAttached) { - // An unhandled exception has occurred; break into the debugger - Debugger.Break(); - } - } - - #region Phone application initialization - - // Avoid double-initialization - private bool phoneApplicationInitialized = false; - - // Do not add any additional code to this method - private void InitializePhoneApplication() { - if (phoneApplicationInitialized) - return; - - // Create the frame but don't set it as RootVisual yet; this allows the splash - // screen to remain active until the application is ready to render. - RootFrame = new PhoneApplicationFrame(); - RootFrame.Navigated += CompleteInitializePhoneApplication; - - // Handle navigation failures - RootFrame.NavigationFailed += RootFrame_NavigationFailed; - - // Handle reset requests for clearing the backstack - RootFrame.Navigated += CheckForResetNavigation; - - // Ensure we don't initialize again - phoneApplicationInitialized = true; - } - - // Do not add any additional code to this method - private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e) { - // Set the root visual to allow the application to render - if (RootVisual != RootFrame) - RootVisual = RootFrame; - - // Remove this handler since it is no longer needed - RootFrame.Navigated -= CompleteInitializePhoneApplication; - } - - private void CheckForResetNavigation(object sender, NavigationEventArgs e) { - // If the app has received a 'reset' navigation, then we need to check - // on the next navigation to see if the page stack should be reset - if (e.NavigationMode == NavigationMode.Reset) - RootFrame.Navigated += ClearBackStackAfterReset; - } - - private void ClearBackStackAfterReset(object sender, NavigationEventArgs e) { - // Unregister the event so it doesn't get called again - RootFrame.Navigated -= ClearBackStackAfterReset; - - // Only clear the stack for 'new' (forward) and 'refresh' navigations - if (e.NavigationMode != NavigationMode.New && e.NavigationMode != NavigationMode.Refresh) - return; - - // For UI consistency, clear the entire page stack - while (RootFrame.RemoveBackEntry() != null) { - ; // do nothing - } - } - - #endregion - - // Initialize the app's font and flow direction as defined in its localized resource strings. - // - // To ensure that the font of your application is aligned with its supported languages and that the - // FlowDirection for each of those languages follows its traditional direction, ResourceLanguage - // and ResourceFlowDirection should be initialized in each resx file to match these values with that - // file's culture. For example: - // - // AppResources.es-ES.resx - // ResourceLanguage's value should be "es-ES" - // ResourceFlowDirection's value should be "LeftToRight" - // - // AppResources.ar-SA.resx - // ResourceLanguage's value should be "ar-SA" - // ResourceFlowDirection's value should be "RightToLeft" - // - // For more info on localizing Windows Phone apps see http://go.microsoft.com/fwlink/?LinkId=262072. - // - private void InitializeLanguage() { - try { - // Set the font to match the display language defined by the - // ResourceLanguage resource string for each supported language. - // - // Fall back to the font of the neutral language if the Display - // language of the phone is not supported. - // - // If a compiler error is hit then ResourceLanguage is missing from - // the resource file. - RootFrame.Language = XmlLanguage.GetLanguage(AppResources.ResourceLanguage); - - // Set the FlowDirection of all elements under the root frame based - // on the ResourceFlowDirection resource string for each - // supported language. - // - // If a compiler error is hit then ResourceFlowDirection is missing from - // the resource file. - FlowDirection flow = (FlowDirection)Enum.Parse(typeof(FlowDirection), AppResources.ResourceFlowDirection); - RootFrame.FlowDirection = flow; - } catch { - // If an exception is caught here it is most likely due to either - // ResourceLangauge not being correctly set to a supported language - // code or ResourceFlowDirection is set to a value other than LeftToRight - // or RightToLeft. - - if (Debugger.IsAttached) { - Debugger.Break(); - } - - throw; - } - } - } -} \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/AlignmentGrid.png b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/AlignmentGrid.png deleted file mode 100644 index f7d2e978..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/AlignmentGrid.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/ApplicationIcon.png b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/ApplicationIcon.png deleted file mode 100644 index 7d95d4e0..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/ApplicationIcon.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/FlipCycleTileLarge.png b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/FlipCycleTileLarge.png deleted file mode 100644 index e0c59ac0..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/FlipCycleTileLarge.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/FlipCycleTileMedium.png b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/FlipCycleTileMedium.png deleted file mode 100644 index e93b89d6..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/FlipCycleTileMedium.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/FlipCycleTileSmall.png b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/FlipCycleTileSmall.png deleted file mode 100644 index 550b1b5e..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/FlipCycleTileSmall.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/IconicTileMediumLarge.png b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/IconicTileMediumLarge.png deleted file mode 100644 index 686e6b53..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/IconicTileMediumLarge.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/IconicTileSmall.png b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/IconicTileSmall.png deleted file mode 100644 index d4b5ede1..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Assets/Tiles/IconicTileSmall.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/LocalizedStrings.cs b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/LocalizedStrings.cs deleted file mode 100644 index dbab4a34..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/LocalizedStrings.cs +++ /dev/null @@ -1,12 +0,0 @@ -using ParsePhoneStarterProject.Resources; - -namespace ParsePhoneStarterProject { - /// - /// Provides access to string resources. - /// - public class LocalizedStrings { - private static AppResources _localizedResources = new AppResources(); - - public AppResources LocalizedResources { get { return _localizedResources; } } - } -} \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/MainPage.xaml b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/MainPage.xaml deleted file mode 100644 index 6ae05590..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/MainPage.xaml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/MainPage.xaml.cs b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/MainPage.xaml.cs deleted file mode 100644 index 7dc073ba..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/MainPage.xaml.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using Parse; -using ParsePhoneStarterProject.Resources; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; - -namespace ParsePhoneStarterProject { - public partial class MainPage : PhoneApplicationPage { - // Constructor - public MainPage() { - InitializeComponent(); - - // Sample code to localize the ApplicationBar - //BuildLocalizedApplicationBar(); - } - - // Sample code for building a localized ApplicationBar - //private void BuildLocalizedApplicationBar() - //{ - // // Set the page's ApplicationBar to a new instance of ApplicationBar. - // ApplicationBar = new ApplicationBar(); - - // // Create a new button and set the text value to the localized string from AppResources. - // ApplicationBarIconButton appBarButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/appbar.add.rest.png", UriKind.Relative)); - // appBarButton.Text = AppResources.AppBarButtonText; - // ApplicationBar.Buttons.Add(appBarButton); - - // // Create a new menu item with the localized string from AppResources. - // ApplicationBarMenuItem appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarMenuItemText); - // ApplicationBar.MenuItems.Add(appBarMenuItem); - //} - } -} \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/ParsePhoneStarterProject.csproj b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/ParsePhoneStarterProject.csproj deleted file mode 100644 index 97a9c587..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/ParsePhoneStarterProject.csproj +++ /dev/null @@ -1,168 +0,0 @@ - - - - Debug - AnyCPU - 10.0.20506 - 2.0 - {0F8E6531-F41D-4220-882C-E747EC1A14BF} - {C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - Properties - ParsePhoneStarterProject - ParsePhoneStarterProject - WindowsPhone - v8.0 - $(TargetFrameworkVersion) - true - - - true - true - ParsePhoneStarterProject_$(Configuration)_$(Platform).xap - Properties\AppManifest.xml - ParsePhoneStarterProject.App - true - 11.0 - true - - - true - full - false - Bin\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - true - full - false - Bin\x86\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\x86\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - true - full - false - Bin\ARM\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\ARM\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - - App.xaml - - - - MainPage.xaml - - - - True - True - AppResources.resx - - - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - - - - Designer - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - PublicResXFileCodeGenerator - AppResources.Designer.cs - - - - - lib\Parse.dll - - - lib\Parse.Phone.dll - - - - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Properties/AppManifest.xml b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Properties/AppManifest.xml deleted file mode 100644 index 6712a117..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Properties/AppManifest.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Properties/AssemblyInfo.cs b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Properties/AssemblyInfo.cs deleted file mode 100644 index 38190e38..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Resources; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("ParsePhoneStarterProject")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ParsePhoneStarterProject")] -[assembly: AssemblyCopyright("Copyright © 2012")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("c3b94727-87e1-4eca-b39d-b3469161899d")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: NeutralResourcesLanguageAttribute("en-US")] diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Properties/WMAppManifest.xml b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Properties/WMAppManifest.xml deleted file mode 100644 index 2c53f0aa..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Properties/WMAppManifest.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Assets\ApplicationIcon.png - - - - - - - - - - - - - - Assets\Tiles\FlipCycleTileSmall.png - 0 - Assets\Tiles\FlipCycleTileMedium.png - ParsePhoneStarterProject - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Resources/AppResources.Designer.cs b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Resources/AppResources.Designer.cs deleted file mode 100644 index 9e05fee0..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Resources/AppResources.Designer.cs +++ /dev/null @@ -1,108 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.17626 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace ParsePhoneStarterProject.Resources { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class AppResources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal AppResources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ParsePhoneStarterProject.Resources.AppResources", typeof(AppResources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to LeftToRight. - /// - public static string ResourceFlowDirection { - get { - return ResourceManager.GetString("ResourceFlowDirection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to us-EN. - /// - public static string ResourceLanguage { - get { - return ResourceManager.GetString("ResourceLanguage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to MY APPLICATION. - /// - public static string ApplicationTitle { - get { - return ResourceManager.GetString("ApplicationTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to button. - /// - public static string AppBarButtonText { - get { - return ResourceManager.GetString("AppBarButtonText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to menu item. - /// - public static string AppBarMenuItemText { - get { - return ResourceManager.GetString("AppBarMenuItemText", resourceCulture); - } - } - } -} diff --git a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Resources/AppResources.resx b/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Resources/AppResources.resx deleted file mode 100644 index 529a1943..00000000 --- a/Parse.StarterProjects/CSharp/ParsePhoneStarterProject/ParsePhoneStarterProject/Resources/AppResources.resx +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - LeftToRight - Controls the FlowDirection for all elements in the RootFrame. Set to the traditional direction of this resource file's language - - - en-US - Controls the Language and ensures that the font for all elements in the RootFrame aligns with the app's language. Set to the language code of this resource file's language. - - - MY APPLICATION - - - add - - - Menu Item - - \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/.gitignore b/Parse.StarterProjects/CSharp/ParsePushSample/.gitignore deleted file mode 100644 index aca24f73..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -StoreAssociation.xml -ParsePushSample_StoreKey.pfx \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample.sln b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample.sln deleted file mode 100644 index 587d8882..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample.sln +++ /dev/null @@ -1,46 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParsePushSample", "ParsePushSample\ParsePushSample.csproj", "{C4F74810-A1B7-4FC8-8314-0E982F6127EC}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|ARM = Debug|ARM - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|ARM = Release|ARM - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|ARM.ActiveCfg = Debug|ARM - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|ARM.Build.0 = Debug|ARM - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|ARM.Deploy.0 = Debug|ARM - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|x64.ActiveCfg = Debug|x64 - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|x64.Build.0 = Debug|x64 - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|x64.Deploy.0 = Debug|x64 - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|x86.ActiveCfg = Debug|x86 - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|x86.Build.0 = Debug|x86 - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Debug|x86.Deploy.0 = Debug|x86 - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|Any CPU.Build.0 = Release|Any CPU - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|Any CPU.Deploy.0 = Release|Any CPU - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|ARM.ActiveCfg = Release|ARM - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|ARM.Build.0 = Release|ARM - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|ARM.Deploy.0 = Release|ARM - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|x64.ActiveCfg = Release|x64 - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|x64.Build.0 = Release|x64 - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|x64.Deploy.0 = Release|x64 - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|x86.ActiveCfg = Release|x86 - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|x86.Build.0 = Release|x86 - {C4F74810-A1B7-4FC8-8314-0E982F6127EC}.Release|x86.Deploy.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/App.xaml b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/App.xaml deleted file mode 100644 index e95a70c4..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/App.xaml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/App.xaml.cs b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/App.xaml.cs deleted file mode 100644 index 8d2c9b40..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/App.xaml.cs +++ /dev/null @@ -1,102 +0,0 @@ -using Parse; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -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; - -// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=234227 - -namespace ParseStarterProject -{ - /// - /// Provides application-specific behavior to supplement the default Application class. - /// - sealed partial class App : Application - { - // We want to report the status of saving the current installation to the user, so save the - // task where we can continue it in MainPage.xaml.cs - internal static Task saveInstallationTask = null; - - /// - /// 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(). - /// - public App() - { - this.InitializeComponent(); - this.Suspending += OnSuspending; - - // Initialize the Parse client with your Application ID and Windows Key found on - // your Parse dashboard - ParseClient.Initialize("YOUR APPLICATION ID", "YOUR .NET KEY"); - - saveInstallationTask = ParseInstallation.CurrentInstallation.SaveAsync(); - } - - /// - /// 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. - /// - /// Details about the launch request and process. - protected override void OnLaunched(LaunchActivatedEventArgs args) - { - 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(); - - if (args.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 - if (!rootFrame.Navigate(typeof(MainPage), args.Arguments)) - { - throw new Exception("Failed to create initial page"); - } - } - // Ensure the current window is active - Window.Current.Activate(); - } - - /// - /// 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. - /// - /// The source of the suspend request. - /// Details about the suspend request. - private void OnSuspending(object sender, SuspendingEventArgs e) - { - var deferral = e.SuspendingOperation.GetDeferral(); - //TODO: Save application state and stop any background activity - deferral.Complete(); - } - } -} diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/DarkGray.png b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/DarkGray.png deleted file mode 100644 index 6cb268aa..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/DarkGray.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/LightGray.png b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/LightGray.png deleted file mode 100644 index 6ccc22b3..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/LightGray.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/Logo.png b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/Logo.png deleted file mode 100644 index a4f5728c..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/Logo.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/MediumGray.png b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/MediumGray.png deleted file mode 100644 index cadb6966..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/MediumGray.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/SmallLogo.png b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/SmallLogo.png deleted file mode 100644 index d476db3c..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/SmallLogo.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/SplashScreen.png b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/SplashScreen.png deleted file mode 100644 index ca05f007..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/SplashScreen.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/StoreLogo.png b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/StoreLogo.png deleted file mode 100644 index 156bad96..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/StoreLogo.png and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/Thumbs.db b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/Thumbs.db deleted file mode 100644 index 4d293b0c..00000000 Binary files a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Assets/Thumbs.db and /dev/null differ diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/BindableBase.cs b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/BindableBase.cs deleted file mode 100644 index 9db11b06..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/BindableBase.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using Windows.UI.Xaml.Data; - -namespace ParsePushSample.Common -{ - /// - /// Implementation of to simplify models. - /// - [Windows.Foundation.Metadata.WebHostHidden] - public abstract class BindableBase : INotifyPropertyChanged - { - /// - /// Multicast event for property change notifications. - /// - public event PropertyChangedEventHandler PropertyChanged; - - /// - /// Checks if a property already matches a desired value. Sets the property and - /// notifies listeners only when necessary. - /// - /// Type of the property. - /// Reference to a property with both getter and setter. - /// Desired value for the property. - /// Name of the property used to notify listeners. This - /// value is optional and can be provided automatically when invoked from compilers that - /// support CallerMemberName. - /// True if the value was changed, false if the existing value matched the - /// desired value. - protected bool SetProperty(ref T storage, T value, [CallerMemberName] String propertyName = null) - { - if (object.Equals(storage, value)) return false; - - storage = value; - this.OnPropertyChanged(propertyName); - return true; - } - - /// - /// Notifies listeners that a property value has changed. - /// - /// Name of the property used to notify listeners. This - /// value is optional and can be provided automatically when invoked from compilers - /// that support . - protected void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - var eventHandler = this.PropertyChanged; - if (eventHandler != null) - { - eventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - } - } -} diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/BooleanNegationConverter.cs b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/BooleanNegationConverter.cs deleted file mode 100644 index e40d7e11..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/BooleanNegationConverter.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using Windows.UI.Xaml.Data; - -namespace ParsePushSample.Common -{ - /// - /// Value converter that translates true to false and vice versa. - /// - public sealed class BooleanNegationConverter : IValueConverter - { - public object Convert(object value, Type targetType, object parameter, string language) - { - return !(value is bool && (bool)value); - } - - public object ConvertBack(object value, Type targetType, object parameter, string language) - { - return !(value is bool && (bool)value); - } - } -} diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/BooleanToVisibilityConverter.cs b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/BooleanToVisibilityConverter.cs deleted file mode 100644 index 8912da3f..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/BooleanToVisibilityConverter.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Runtime.CompilerServices; -using Windows.Foundation; -using Windows.Foundation.Collections; -using Windows.Graphics.Display; -using Windows.UI.ViewManagement; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Data; - -namespace ParsePushSample.Common -{ - /// - /// Value converter that translates true to and false to - /// . - /// - public sealed class BooleanToVisibilityConverter : IValueConverter - { - public object Convert(object value, Type targetType, object parameter, string language) - { - return (value is bool && (bool)value) ? Visibility.Visible : Visibility.Collapsed; - } - - public object ConvertBack(object value, Type targetType, object parameter, string language) - { - return value is Visibility && (Visibility)value == Visibility.Visible; - } - } -} diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/LayoutAwarePage.cs b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/LayoutAwarePage.cs deleted file mode 100644 index 67c5c497..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/LayoutAwarePage.cs +++ /dev/null @@ -1,543 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using Windows.Foundation; -using Windows.Foundation.Collections; -using Windows.System; -using Windows.UI.Core; -using Windows.UI.ViewManagement; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Navigation; - -namespace ParsePushSample.Common -{ - /// - /// Typical implementation of Page that provides several important conveniences: - /// - /// - /// Application view state to visual state mapping - /// - /// - /// GoBack, GoForward, and GoHome event handlers - /// - /// - /// Mouse and keyboard shortcuts for navigation - /// - /// - /// State management for navigation and process lifetime management - /// - /// - /// A default view model - /// - /// - /// - [Windows.Foundation.Metadata.WebHostHidden] - public class LayoutAwarePage : Page - { - /// - /// Identifies the dependency property. - /// - public static readonly DependencyProperty DefaultViewModelProperty = - DependencyProperty.Register("DefaultViewModel", typeof(IObservableMap), - typeof(LayoutAwarePage), null); - - private List _layoutAwareControls; - - /// - /// Initializes a new instance of the class. - /// - public LayoutAwarePage() - { - if (Windows.ApplicationModel.DesignMode.DesignModeEnabled) return; - - // Create an empty default view model - this.DefaultViewModel = new ObservableDictionary(); - - // When this page is part of the visual tree make two changes: - // 1) Map application view state to visual state for the page - // 2) Handle keyboard and mouse navigation requests - this.Loaded += (sender, e) => - { - this.StartLayoutUpdates(sender, e); - - // Keyboard and mouse navigation only apply when occupying the entire window - if (this.ActualHeight == Window.Current.Bounds.Height && - this.ActualWidth == Window.Current.Bounds.Width) - { - // Listen to the window directly so focus isn't required - Window.Current.CoreWindow.Dispatcher.AcceleratorKeyActivated += - CoreDispatcher_AcceleratorKeyActivated; - Window.Current.CoreWindow.PointerPressed += - this.CoreWindow_PointerPressed; - } - }; - - // Undo the same changes when the page is no longer visible - this.Unloaded += (sender, e) => - { - this.StopLayoutUpdates(sender, e); - Window.Current.CoreWindow.Dispatcher.AcceleratorKeyActivated -= - CoreDispatcher_AcceleratorKeyActivated; - Window.Current.CoreWindow.PointerPressed -= - this.CoreWindow_PointerPressed; - }; - } - - /// - /// An implementation of designed to be - /// used as a trivial view model. - /// - protected IObservableMap DefaultViewModel - { - get - { - return this.GetValue(DefaultViewModelProperty) as IObservableMap; - } - - set - { - this.SetValue(DefaultViewModelProperty, value); - } - } - - #region Navigation support - - /// - /// Invoked as an event handler to navigate backward in the page's associated - /// until it reaches the top of the navigation stack. - /// - /// Instance that triggered the event. - /// Event data describing the conditions that led to the event. - protected virtual void GoHome(object sender, RoutedEventArgs e) - { - // Use the navigation frame to return to the topmost page - if (this.Frame != null) - { - while (this.Frame.CanGoBack) this.Frame.GoBack(); - } - } - - /// - /// Invoked as an event handler to navigate backward in the navigation stack - /// associated with this page's . - /// - /// Instance that triggered the event. - /// Event data describing the conditions that led to the - /// event. - protected virtual void GoBack(object sender, RoutedEventArgs e) - { - // Use the navigation frame to return to the previous page - if (this.Frame != null && this.Frame.CanGoBack) this.Frame.GoBack(); - } - - /// - /// Invoked as an event handler to navigate forward in the navigation stack - /// associated with this page's . - /// - /// Instance that triggered the event. - /// Event data describing the conditions that led to the - /// event. - protected virtual void GoForward(object sender, RoutedEventArgs e) - { - // Use the navigation frame to move to the next page - if (this.Frame != null && this.Frame.CanGoForward) this.Frame.GoForward(); - } - - /// - /// Invoked on every keystroke, including system keys such as Alt key combinations, when - /// this page is active and occupies the entire window. Used to detect keyboard navigation - /// between pages even when the page itself doesn't have focus. - /// - /// Instance that triggered the event. - /// Event data describing the conditions that led to the event. - private void CoreDispatcher_AcceleratorKeyActivated(CoreDispatcher sender, - AcceleratorKeyEventArgs args) - { - var virtualKey = args.VirtualKey; - - // Only investigate further when Left, Right, or the dedicated Previous or Next keys - // are pressed - if ((args.EventType == CoreAcceleratorKeyEventType.SystemKeyDown || - args.EventType == CoreAcceleratorKeyEventType.KeyDown) && - (virtualKey == VirtualKey.Left || virtualKey == VirtualKey.Right || - (int)virtualKey == 166 || (int)virtualKey == 167)) - { - var coreWindow = Window.Current.CoreWindow; - var downState = CoreVirtualKeyStates.Down; - bool menuKey = (coreWindow.GetKeyState(VirtualKey.Menu) & downState) == downState; - bool controlKey = (coreWindow.GetKeyState(VirtualKey.Control) & downState) == downState; - bool shiftKey = (coreWindow.GetKeyState(VirtualKey.Shift) & downState) == downState; - bool noModifiers = !menuKey && !controlKey && !shiftKey; - bool onlyAlt = menuKey && !controlKey && !shiftKey; - - if (((int)virtualKey == 166 && noModifiers) || - (virtualKey == VirtualKey.Left && onlyAlt)) - { - // When the previous key or Alt+Left are pressed navigate back - args.Handled = true; - this.GoBack(this, new RoutedEventArgs()); - } - else if (((int)virtualKey == 167 && noModifiers) || - (virtualKey == VirtualKey.Right && onlyAlt)) - { - // When the next key or Alt+Right are pressed navigate forward - args.Handled = true; - this.GoForward(this, new RoutedEventArgs()); - } - } - } - - /// - /// Invoked on every mouse click, touch screen tap, or equivalent interaction when this - /// page is active and occupies the entire window. Used to detect browser-style next and - /// previous mouse button clicks to navigate between pages. - /// - /// Instance that triggered the event. - /// Event data describing the conditions that led to the event. - private void CoreWindow_PointerPressed(CoreWindow sender, - PointerEventArgs args) - { - var properties = args.CurrentPoint.Properties; - - // Ignore button chords with the left, right, and middle buttons - if (properties.IsLeftButtonPressed || properties.IsRightButtonPressed || - properties.IsMiddleButtonPressed) return; - - // If back or foward are pressed (but not both) navigate appropriately - bool backPressed = properties.IsXButton1Pressed; - bool forwardPressed = properties.IsXButton2Pressed; - if (backPressed ^ forwardPressed) - { - args.Handled = true; - if (backPressed) this.GoBack(this, new RoutedEventArgs()); - if (forwardPressed) this.GoForward(this, new RoutedEventArgs()); - } - } - - #endregion - - #region Visual state switching - - /// - /// Invoked as an event handler, typically on the - /// event of a within the page, to indicate that the sender should - /// start receiving visual state management changes that correspond to application view - /// state changes. - /// - /// Instance of that supports visual state - /// management corresponding to view states. - /// Event data that describes how the request was made. - /// The current view state will immediately be used to set the corresponding - /// visual state when layout updates are requested. A corresponding - /// event handler connected to - /// is strongly encouraged. Instances of - /// automatically invoke these handlers in their Loaded and - /// Unloaded events. - /// - /// - public void StartLayoutUpdates(object sender, RoutedEventArgs e) - { - var control = sender as Control; - if (control == null) return; - if (this._layoutAwareControls == null) - { - // Start listening to view state changes when there are controls interested in updates - Window.Current.SizeChanged += this.WindowSizeChanged; - this._layoutAwareControls = new List(); - } - this._layoutAwareControls.Add(control); - - // Set the initial visual state of the control - VisualStateManager.GoToState(control, DetermineVisualState(ApplicationView.Value), false); - } - - private void WindowSizeChanged(object sender, WindowSizeChangedEventArgs e) - { - this.InvalidateVisualState(); - } - - /// - /// Invoked as an event handler, typically on the - /// event of a , to indicate that the sender should start receiving - /// visual state management changes that correspond to application view state changes. - /// - /// Instance of that supports visual state - /// management corresponding to view states. - /// Event data that describes how the request was made. - /// The current view state will immediately be used to set the corresponding - /// visual state when layout updates are requested. - /// - public void StopLayoutUpdates(object sender, RoutedEventArgs e) - { - var control = sender as Control; - if (control == null || this._layoutAwareControls == null) return; - this._layoutAwareControls.Remove(control); - if (this._layoutAwareControls.Count == 0) - { - // Stop listening to view state changes when no controls are interested in updates - this._layoutAwareControls = null; - Window.Current.SizeChanged -= this.WindowSizeChanged; - } - } - - /// - /// Translates values into strings for visual state - /// management within the page. The default implementation uses the names of enum values. - /// Subclasses may override this method to control the mapping scheme used. - /// - /// View state for which a visual state is desired. - /// Visual state name used to drive the - /// - /// - protected virtual string DetermineVisualState(ApplicationViewState viewState) - { - return viewState.ToString(); - } - - /// - /// Updates all controls that are listening for visual state changes with the correct - /// visual state. - /// - /// - /// Typically used in conjunction with overriding to - /// signal that a different value may be returned even though the view state has not - /// changed. - /// - public void InvalidateVisualState() - { - if (this._layoutAwareControls != null) - { - string visualState = DetermineVisualState(ApplicationView.Value); - foreach (var layoutAwareControl in this._layoutAwareControls) - { - VisualStateManager.GoToState(layoutAwareControl, visualState, false); - } - } - } - - #endregion - - #region Process lifetime management - - private String _pageKey; - - /// - /// Invoked when this page is about to be displayed in a Frame. - /// - /// Event data that describes how this page was reached. The Parameter - /// property provides the group to be displayed. - protected override void OnNavigatedTo(NavigationEventArgs e) - { - // Returning to a cached page through navigation shouldn't trigger state loading - if (this._pageKey != null) return; - - var frameState = SuspensionManager.SessionStateForFrame(this.Frame); - this._pageKey = "Page-" + this.Frame.BackStackDepth; - - if (e.NavigationMode == NavigationMode.New) - { - // Clear existing state for forward navigation when adding a new page to the - // navigation stack - var nextPageKey = this._pageKey; - int nextPageIndex = this.Frame.BackStackDepth; - while (frameState.Remove(nextPageKey)) - { - nextPageIndex++; - nextPageKey = "Page-" + nextPageIndex; - } - - // Pass the navigation parameter to the new page - this.LoadState(e.Parameter, null); - } - else - { - // Pass the navigation parameter and preserved page state to the page, using - // the same strategy for loading suspended state and recreating pages discarded - // from cache - this.LoadState(e.Parameter, (Dictionary)frameState[this._pageKey]); - } - } - - /// - /// Invoked when this page will no longer be displayed in a Frame. - /// - /// Event data that describes how this page was reached. The Parameter - /// property provides the group to be displayed. - protected override void OnNavigatedFrom(NavigationEventArgs e) - { - var frameState = SuspensionManager.SessionStateForFrame(this.Frame); - var pageState = new Dictionary(); - this.SaveState(pageState); - frameState[_pageKey] = pageState; - } - - /// - /// Populates the page with content passed during navigation. Any saved state is also - /// provided when recreating a page from a prior session. - /// - /// The parameter value passed to - /// when this page was initially requested. - /// - /// A dictionary of state preserved by this page during an earlier - /// session. This will be null the first time a page is visited. - protected virtual void LoadState(Object navigationParameter, Dictionary pageState) - { - } - - /// - /// Preserves state associated with this page in case the application is suspended or the - /// page is discarded from the navigation cache. Values must conform to the serialization - /// requirements of . - /// - /// An empty dictionary to be populated with serializable state. - protected virtual void SaveState(Dictionary pageState) - { - } - - #endregion - - /// - /// Implementation of IObservableMap that supports reentrancy for use as a default view - /// model. - /// - private class ObservableDictionary : IObservableMap - { - private class ObservableDictionaryChangedEventArgs : IMapChangedEventArgs - { - public ObservableDictionaryChangedEventArgs(CollectionChange change, K key) - { - this.CollectionChange = change; - this.Key = key; - } - - public CollectionChange CollectionChange { get; private set; } - public K Key { get; private set; } - } - - private Dictionary _dictionary = new Dictionary(); - public event MapChangedEventHandler MapChanged; - - private void InvokeMapChanged(CollectionChange change, K key) - { - var eventHandler = MapChanged; - if (eventHandler != null) - { - eventHandler(this, new ObservableDictionaryChangedEventArgs(change, key)); - } - } - - public void Add(K key, V value) - { - this._dictionary.Add(key, value); - this.InvokeMapChanged(CollectionChange.ItemInserted, key); - } - - public void Add(KeyValuePair item) - { - this.Add(item.Key, item.Value); - } - - public bool Remove(K key) - { - if (this._dictionary.Remove(key)) - { - this.InvokeMapChanged(CollectionChange.ItemRemoved, key); - return true; - } - return false; - } - - public bool Remove(KeyValuePair item) - { - V currentValue; - if (this._dictionary.TryGetValue(item.Key, out currentValue) && - Object.Equals(item.Value, currentValue) && this._dictionary.Remove(item.Key)) - { - this.InvokeMapChanged(CollectionChange.ItemRemoved, item.Key); - return true; - } - return false; - } - - public V this[K key] - { - get - { - return this._dictionary[key]; - } - set - { - this._dictionary[key] = value; - this.InvokeMapChanged(CollectionChange.ItemChanged, key); - } - } - - public void Clear() - { - var priorKeys = this._dictionary.Keys.ToArray(); - this._dictionary.Clear(); - foreach (var key in priorKeys) - { - this.InvokeMapChanged(CollectionChange.ItemRemoved, key); - } - } - - public ICollection Keys - { - get { return this._dictionary.Keys; } - } - - public bool ContainsKey(K key) - { - return this._dictionary.ContainsKey(key); - } - - public bool TryGetValue(K key, out V value) - { - return this._dictionary.TryGetValue(key, out value); - } - - public ICollection Values - { - get { return this._dictionary.Values; } - } - - public bool Contains(KeyValuePair item) - { - return this._dictionary.Contains(item); - } - - public int Count - { - get { return this._dictionary.Count; } - } - - public bool IsReadOnly - { - get { return false; } - } - - public IEnumerator> GetEnumerator() - { - return this._dictionary.GetEnumerator(); - } - - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() - { - return this._dictionary.GetEnumerator(); - } - - public void CopyTo(KeyValuePair[] array, int arrayIndex) - { - int arraySize = array.Length; - foreach (var pair in this._dictionary) - { - if (arrayIndex >= arraySize) break; - array[arrayIndex++] = pair; - } - } - } - } -} diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/ReadMe.txt b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/ReadMe.txt deleted file mode 100644 index a2ff8ade..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/ReadMe.txt +++ /dev/null @@ -1,12 +0,0 @@ -The Common directory contains classes and XAML styles that simplify application development. - -These are not merely convenient, but are required by most Visual Studio project and item templates. -If you need a variation on one of the styles in StandardStyles it is recommended that you make a -copy in your own resource dictionary. When right-clicking on a styled control in the design -surface the context menu includes an option to Edit a Copy to simplify this process. - -Classes in the Common directory form part of your project and may be further enhanced to meet your -needs. Care should be taken when altering existing methods and properties as incompatible changes -will require corresponding changes to code included in a variety of Visual Studio templates. For -example, additional pages added to your project are written assuming that the original methods and -properties in Common classes are still present and that the names of the types have not changed. \ No newline at end of file diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/RichTextColumns.cs b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/RichTextColumns.cs deleted file mode 100644 index 6b38c1e3..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/RichTextColumns.cs +++ /dev/null @@ -1,210 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Windows.Foundation; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Data; -using Windows.UI.Xaml.Documents; - -namespace ParsePushSample.Common -{ - /// - /// Wrapper for that creates as many additional overflow - /// columns as needed to fit the available content. - /// - /// - /// The following creates a collection of 400-pixel wide columns spaced 50 pixels apart - /// to contain arbitrary data-bound content: - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// Typically used in a horizontally scrolling region where an unbounded amount of - /// space allows for all needed columns to be created. When used in a vertically scrolling - /// space there will never be any additional columns. - [Windows.UI.Xaml.Markup.ContentProperty(Name = "RichTextContent")] - public sealed class RichTextColumns : Panel - { - /// - /// Identifies the dependency property. - /// - public static readonly DependencyProperty RichTextContentProperty = - DependencyProperty.Register("RichTextContent", typeof(RichTextBlock), - typeof(RichTextColumns), new PropertyMetadata(null, ResetOverflowLayout)); - - /// - /// Identifies the dependency property. - /// - public static readonly DependencyProperty ColumnTemplateProperty = - DependencyProperty.Register("ColumnTemplate", typeof(DataTemplate), - typeof(RichTextColumns), new PropertyMetadata(null, ResetOverflowLayout)); - - /// - /// Initializes a new instance of the class. - /// - public RichTextColumns() - { - this.HorizontalAlignment = HorizontalAlignment.Left; - } - - /// - /// Gets or sets the initial rich text content to be used as the first column. - /// - public RichTextBlock RichTextContent - { - get { return (RichTextBlock)GetValue(RichTextContentProperty); } - set { SetValue(RichTextContentProperty, value); } - } - - /// - /// Gets or sets the template used to create additional - /// instances. - /// - public DataTemplate ColumnTemplate - { - get { return (DataTemplate)GetValue(ColumnTemplateProperty); } - set { SetValue(ColumnTemplateProperty, value); } - } - - /// - /// Invoked when the content or overflow template is changed to recreate the column layout. - /// - /// Instance of where the change - /// occurred. - /// Event data describing the specific change. - private static void ResetOverflowLayout(DependencyObject d, DependencyPropertyChangedEventArgs e) - { - // When dramatic changes occur, rebuild the column layout from scratch - var target = d as RichTextColumns; - if (target != null) - { - target._overflowColumns = null; - target.Children.Clear(); - target.InvalidateMeasure(); - } - } - - /// - /// Lists overflow columns already created. Must maintain a 1:1 relationship with - /// instances in the collection following the initial - /// RichTextBlock child. - /// - private List _overflowColumns = null; - - /// - /// Determines whether additional overflow columns are needed and if existing columns can - /// be removed. - /// - /// The size of the space available, used to constrain the - /// number of additional columns that can be created. - /// The resulting size of the original content plus any extra columns. - protected override Size MeasureOverride(Size availableSize) - { - if (this.RichTextContent == null) return new Size(0, 0); - - // Make sure the RichTextBlock is a child, using the lack of - // a list of additional columns as a sign that this hasn't been - // done yet - if (this._overflowColumns == null) - { - Children.Add(this.RichTextContent); - this._overflowColumns = new List(); - } - - // Start by measuring the original RichTextBlock content - this.RichTextContent.Measure(availableSize); - var maxWidth = this.RichTextContent.DesiredSize.Width; - var maxHeight = this.RichTextContent.DesiredSize.Height; - var hasOverflow = this.RichTextContent.HasOverflowContent; - - // Make sure there are enough overflow columns - int overflowIndex = 0; - while (hasOverflow && maxWidth < availableSize.Width && this.ColumnTemplate != null) - { - // Use existing overflow columns until we run out, then create - // more from the supplied template - RichTextBlockOverflow overflow; - if (this._overflowColumns.Count > overflowIndex) - { - overflow = this._overflowColumns[overflowIndex]; - } - else - { - overflow = (RichTextBlockOverflow)this.ColumnTemplate.LoadContent(); - this._overflowColumns.Add(overflow); - this.Children.Add(overflow); - if (overflowIndex == 0) - { - this.RichTextContent.OverflowContentTarget = overflow; - } - else - { - this._overflowColumns[overflowIndex - 1].OverflowContentTarget = overflow; - } - } - - // Measure the new column and prepare to repeat as necessary - overflow.Measure(new Size(availableSize.Width - maxWidth, availableSize.Height)); - maxWidth += overflow.DesiredSize.Width; - maxHeight = Math.Max(maxHeight, overflow.DesiredSize.Height); - hasOverflow = overflow.HasOverflowContent; - overflowIndex++; - } - - // Disconnect extra columns from the overflow chain, remove them from our private list - // of columns, and remove them as children - if (this._overflowColumns.Count > overflowIndex) - { - if (overflowIndex == 0) - { - this.RichTextContent.OverflowContentTarget = null; - } - else - { - this._overflowColumns[overflowIndex - 1].OverflowContentTarget = null; - } - while (this._overflowColumns.Count > overflowIndex) - { - this._overflowColumns.RemoveAt(overflowIndex); - this.Children.RemoveAt(overflowIndex + 1); - } - } - - // Report final determined size - return new Size(maxWidth, maxHeight); - } - - /// - /// Arranges the original content and all extra columns. - /// - /// Defines the size of the area the children must be arranged - /// within. - /// The size of the area the children actually required. - protected override Size ArrangeOverride(Size finalSize) - { - double maxWidth = 0; - double maxHeight = 0; - foreach (var child in Children) - { - child.Arrange(new Rect(maxWidth, 0, child.DesiredSize.Width, finalSize.Height)); - maxWidth += child.DesiredSize.Width; - maxHeight = Math.Max(maxHeight, child.DesiredSize.Height); - } - return new Size(maxWidth, maxHeight); - } - } -} diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/StandardStyles.xaml b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/StandardStyles.xaml deleted file mode 100644 index d54e7e05..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/StandardStyles.xaml +++ /dev/null @@ -1,1829 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Mouse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/SuspensionManager.cs b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/SuspensionManager.cs deleted file mode 100644 index e70b3a48..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/Common/SuspensionManager.cs +++ /dev/null @@ -1,257 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; -using Windows.ApplicationModel; -using Windows.Storage; -using Windows.Storage.Streams; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Controls; - -namespace ParsePushSample.Common -{ - /// - /// SuspensionManager captures global session state to simplify process lifetime management - /// for an application. Note that session state will be automatically cleared under a variety - /// of conditions and should only be used to store information that would be convenient to - /// carry across sessions, but that should be discarded when an application crashes or is - /// upgraded. - /// - internal sealed class SuspensionManager - { - private static Dictionary _sessionState = new Dictionary(); - private static List _knownTypes = new List(); - private const string sessionStateFilename = "_sessionState.xml"; - - /// - /// Provides access to global session state for the current session. This state is - /// serialized by and restored by - /// , so values must be serializable by - /// and should be as compact as possible. Strings - /// and other self-contained data types are strongly recommended. - /// - public static Dictionary SessionState - { - get { return _sessionState; } - } - - /// - /// List of custom types provided to the when - /// reading and writing session state. Initially empty, additional types may be - /// added to customize the serialization process. - /// - public static List KnownTypes - { - get { return _knownTypes; } - } - - /// - /// Save the current . Any instances - /// registered with will also preserve their current - /// navigation stack, which in turn gives their active an opportunity - /// to save its state. - /// - /// An asynchronous task that reflects when session state has been saved. - public static async Task SaveAsync() - { - try - { - // Save the navigation state for all registered frames - foreach (var weakFrameReference in _registeredFrames) - { - Frame frame; - if (weakFrameReference.TryGetTarget(out frame)) - { - SaveFrameNavigationState(frame); - } - } - - // Serialize the session state synchronously to avoid asynchronous access to shared - // state - MemoryStream sessionData = new MemoryStream(); - DataContractSerializer serializer = new DataContractSerializer(typeof(Dictionary), _knownTypes); - serializer.WriteObject(sessionData, _sessionState); - - // Get an output stream for the SessionState file and write the state asynchronously - StorageFile file = await ApplicationData.Current.LocalFolder.CreateFileAsync(sessionStateFilename, CreationCollisionOption.ReplaceExisting); - using (Stream fileStream = await file.OpenStreamForWriteAsync()) - { - sessionData.Seek(0, SeekOrigin.Begin); - await sessionData.CopyToAsync(fileStream); - await fileStream.FlushAsync(); - } - } - catch (Exception e) - { - throw new SuspensionManagerException(e); - } - } - - /// - /// Restores previously saved . Any instances - /// registered with will also restore their prior navigation - /// state, which in turn gives their active an opportunity restore its - /// state. - /// - /// An asynchronous task that reflects when session state has been read. The - /// content of should not be relied upon until this task - /// completes. - public static async Task RestoreAsync() - { - _sessionState = new Dictionary(); - - try - { - // Get the input stream for the SessionState file - StorageFile file = await ApplicationData.Current.LocalFolder.GetFileAsync(sessionStateFilename); - using (IInputStream inStream = await file.OpenSequentialReadAsync()) - { - // Deserialize the Session State - DataContractSerializer serializer = new DataContractSerializer(typeof(Dictionary), _knownTypes); - _sessionState = (Dictionary)serializer.ReadObject(inStream.AsStreamForRead()); - } - - // Restore any registered frames to their saved state - foreach (var weakFrameReference in _registeredFrames) - { - Frame frame; - if (weakFrameReference.TryGetTarget(out frame)) - { - frame.ClearValue(FrameSessionStateProperty); - RestoreFrameNavigationState(frame); - } - } - } - catch (Exception e) - { - throw new SuspensionManagerException(e); - } - } - - private static DependencyProperty FrameSessionStateKeyProperty = - DependencyProperty.RegisterAttached("_FrameSessionStateKey", typeof(String), typeof(SuspensionManager), null); - private static DependencyProperty FrameSessionStateProperty = - DependencyProperty.RegisterAttached("_FrameSessionState", typeof(Dictionary), typeof(SuspensionManager), null); - private static List> _registeredFrames = new List>(); - - /// - /// Registers a instance to allow its navigation history to be saved to - /// and restored from . Frames should be registered once - /// immediately after creation if they will participate in session state management. Upon - /// registration if state has already been restored for the specified key - /// the navigation history will immediately be restored. Subsequent invocations of - /// will also restore navigation history. - /// - /// An instance whose navigation history should be managed by - /// - /// A unique key into used to - /// store navigation-related information. - public static void RegisterFrame(Frame frame, String sessionStateKey) - { - if (frame.GetValue(FrameSessionStateKeyProperty) != null) - { - throw new InvalidOperationException("Frames can only be registered to one session state key"); - } - - if (frame.GetValue(FrameSessionStateProperty) != null) - { - throw new InvalidOperationException("Frames must be either be registered before accessing frame session state, or not registered at all"); - } - - // Use a dependency property to associate the session key with a frame, and keep a list of frames whose - // navigation state should be managed - frame.SetValue(FrameSessionStateKeyProperty, sessionStateKey); - _registeredFrames.Add(new WeakReference(frame)); - - // Check to see if navigation state can be restored - RestoreFrameNavigationState(frame); - } - - /// - /// Disassociates a previously registered by - /// from . Any navigation state previously captured will be - /// removed. - /// - /// An instance whose navigation history should no longer be - /// managed. - public static void UnregisterFrame(Frame frame) - { - // Remove session state and remove the frame from the list of frames whose navigation - // state will be saved (along with any weak references that are no longer reachable) - SessionState.Remove((String)frame.GetValue(FrameSessionStateKeyProperty)); - _registeredFrames.RemoveAll((weakFrameReference) => - { - Frame testFrame; - return !weakFrameReference.TryGetTarget(out testFrame) || testFrame == frame; - }); - } - - /// - /// Provides storage for session state associated with the specified . - /// Frames that have been previously registered with have - /// their session state saved and restored automatically as a part of the global - /// . Frames that are not registered have transient state - /// that can still be useful when restoring pages that have been discarded from the - /// navigation cache. - /// - /// Apps may choose to rely on to manage - /// page-specific state instead of working with frame session state directly. - /// The instance for which session state is desired. - /// A collection of state subject to the same serialization mechanism as - /// . - public static Dictionary SessionStateForFrame(Frame frame) - { - var frameState = (Dictionary)frame.GetValue(FrameSessionStateProperty); - - if (frameState == null) - { - var frameSessionKey = (String)frame.GetValue(FrameSessionStateKeyProperty); - if (frameSessionKey != null) - { - // Registered frames reflect the corresponding session state - if (!_sessionState.ContainsKey(frameSessionKey)) - { - _sessionState[frameSessionKey] = new Dictionary(); - } - frameState = (Dictionary)_sessionState[frameSessionKey]; - } - else - { - // Frames that aren't registered have transient state - frameState = new Dictionary(); - } - frame.SetValue(FrameSessionStateProperty, frameState); - } - return frameState; - } - - private static void RestoreFrameNavigationState(Frame frame) - { - var frameState = SessionStateForFrame(frame); - if (frameState.ContainsKey("Navigation")) - { - frame.SetNavigationState((String)frameState["Navigation"]); - } - } - - private static void SaveFrameNavigationState(Frame frame) - { - var frameState = SessionStateForFrame(frame); - frameState["Navigation"] = frame.GetNavigationState(); - } - } - public class SuspensionManagerException : Exception - { - public SuspensionManagerException() - { - } - - public SuspensionManagerException(Exception e) : base("SuspensionManager failed", e) - { - - } - } -} diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/DataModel/SampleDataSource.cs b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/DataModel/SampleDataSource.cs deleted file mode 100644 index 41006c7a..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/DataModel/SampleDataSource.cs +++ /dev/null @@ -1,536 +0,0 @@ -using System; -using System.Linq; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using Windows.ApplicationModel.Resources.Core; -using Windows.Foundation; -using Windows.Foundation.Collections; -using Windows.UI.Xaml.Data; -using Windows.UI.Xaml.Media; -using Windows.UI.Xaml.Media.Imaging; -using System.Collections.Specialized; - -// The data model defined by this file serves as a representative example of a strongly-typed -// model that supports notification when members are added, removed, or modified. The property -// names chosen coincide with data bindings in the standard item templates. -// -// Applications may use this model as a starting point and build on it, or discard it entirely and -// replace it with something appropriate to their needs. - -namespace ParsePushSample.Data -{ - /// - /// Base class for and that - /// defines properties common to both. - /// - [Windows.Foundation.Metadata.WebHostHidden] - public abstract class SampleDataCommon : ParsePushSample.Common.BindableBase - { - private static Uri _baseUri = new Uri("ms-appx:///"); - - public SampleDataCommon(String uniqueId, String title, String subtitle, String imagePath, String description) - { - this._uniqueId = uniqueId; - this._title = title; - this._subtitle = subtitle; - this._description = description; - this._imagePath = imagePath; - } - - private string _uniqueId = string.Empty; - public string UniqueId - { - get { return this._uniqueId; } - set { this.SetProperty(ref this._uniqueId, value); } - } - - private string _title = string.Empty; - public string Title - { - get { return this._title; } - set { this.SetProperty(ref this._title, value); } - } - - private string _subtitle = string.Empty; - public string Subtitle - { - get { return this._subtitle; } - set { this.SetProperty(ref this._subtitle, value); } - } - - private string _description = string.Empty; - public string Description - { - get { return this._description; } - set { this.SetProperty(ref this._description, value); } - } - - private ImageSource _image = null; - private String _imagePath = null; - public ImageSource Image - { - get - { - if (this._image == null && this._imagePath != null) - { - this._image = new BitmapImage(new Uri(SampleDataCommon._baseUri, this._imagePath)); - } - return this._image; - } - - set - { - this._imagePath = null; - this.SetProperty(ref this._image, value); - } - } - - public void SetImage(String path) - { - this._image = null; - this._imagePath = path; - this.OnPropertyChanged("Image"); - } - - public override string ToString() - { - return this.Title; - } - } - - /// - /// Generic item data model. - /// - public class SampleDataItem : SampleDataCommon - { - public SampleDataItem(String uniqueId, String title, String subtitle, String imagePath, String description, String content, SampleDataGroup group) - : base(uniqueId, title, subtitle, imagePath, description) - { - this._content = content; - this._group = group; - } - - private string _content = string.Empty; - public string Content - { - get { return this._content; } - set { this.SetProperty(ref this._content, value); } - } - - private SampleDataGroup _group; - public SampleDataGroup Group - { - get { return this._group; } - set { this.SetProperty(ref this._group, value); } - } - } - - /// - /// Generic group data model. - /// - public class SampleDataGroup : SampleDataCommon - { - public SampleDataGroup(String uniqueId, String title, String subtitle, String imagePath, String description) - : base(uniqueId, title, subtitle, imagePath, description) - { - Items.CollectionChanged += ItemsCollectionChanged; - } - - private void ItemsCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) - { - // Provides a subset of the full items collection to bind to from a GroupedItemsPage - // for two reasons: GridView will not virtualize large items collections, and it - // improves the user experience when browsing through groups with large numbers of - // items. - // - // A maximum of 12 items are displayed because it results in filled grid columns - // whether there are 1, 2, 3, 4, or 6 rows displayed - - switch (e.Action) - { - case NotifyCollectionChangedAction.Add: - if (e.NewStartingIndex < 12) - { - TopItems.Insert(e.NewStartingIndex,Items[e.NewStartingIndex]); - if (TopItems.Count > 12) - { - TopItems.RemoveAt(12); - } - } - break; - case NotifyCollectionChangedAction.Move: - if (e.OldStartingIndex < 12 && e.NewStartingIndex < 12) - { - TopItems.Move(e.OldStartingIndex, e.NewStartingIndex); - } - else if (e.OldStartingIndex < 12) - { - TopItems.RemoveAt(e.OldStartingIndex); - TopItems.Add(Items[11]); - } - else if (e.NewStartingIndex < 12) - { - TopItems.Insert(e.NewStartingIndex, Items[e.NewStartingIndex]); - TopItems.RemoveAt(12); - } - break; - case NotifyCollectionChangedAction.Remove: - if (e.OldStartingIndex < 12) - { - TopItems.RemoveAt(e.OldStartingIndex); - if (Items.Count >= 12) - { - TopItems.Add(Items[11]); - } - } - break; - case NotifyCollectionChangedAction.Replace: - if (e.OldStartingIndex < 12) - { - TopItems[e.OldStartingIndex] = Items[e.OldStartingIndex]; - } - break; - case NotifyCollectionChangedAction.Reset: - TopItems.Clear(); - while (TopItems.Count < Items.Count && TopItems.Count < 12) - { - TopItems.Add(Items[TopItems.Count]); - } - break; - } - } - - private ObservableCollection _items = new ObservableCollection(); - public ObservableCollection Items - { - get { return this._items; } - } - - private ObservableCollection _topItem = new ObservableCollection(); - public ObservableCollection TopItems - { - get {return this._topItem; } - } - } - - /// - /// Creates a collection of groups and items with hard-coded content. - /// - /// SampleDataSource initializes with placeholder data rather than live production - /// data so that sample data is provided at both design-time and run-time. - /// - public sealed class SampleDataSource - { - private static SampleDataSource _sampleDataSource = new SampleDataSource(); - - private ObservableCollection _allGroups = new ObservableCollection(); - public ObservableCollection AllGroups - { - get { return this._allGroups; } - } - - public static IEnumerable GetGroups(string uniqueId) - { - if (!uniqueId.Equals("AllGroups")) throw new ArgumentException("Only 'AllGroups' is supported as a collection of groups"); - - return _sampleDataSource.AllGroups; - } - - public static SampleDataGroup GetGroup(string uniqueId) - { - // Simple linear search is acceptable for small data sets - var matches = _sampleDataSource.AllGroups.Where((group) => group.UniqueId.Equals(uniqueId)); - if (matches.Count() == 1) return matches.First(); - return null; - } - - public static SampleDataItem GetItem(string uniqueId) - { - // Simple linear search is acceptable for small data sets - var matches = _sampleDataSource.AllGroups.SelectMany(group => group.Items).Where((item) => item.UniqueId.Equals(uniqueId)); - if (matches.Count() == 1) return matches.First(); - return null; - } - - public SampleDataSource() - { - String ITEM_CONTENT = String.Format("Item Content: {0}\n\n{0}\n\n{0}\n\n{0}\n\n{0}\n\n{0}\n\n{0}", - "Curabitur class aliquam vestibulum nam curae maecenas sed integer cras phasellus suspendisse quisque donec dis praesent accumsan bibendum pellentesque condimentum adipiscing etiam consequat vivamus dictumst aliquam duis convallis scelerisque est parturient ullamcorper aliquet fusce suspendisse nunc hac eleifend amet blandit facilisi condimentum commodo scelerisque faucibus aenean ullamcorper ante mauris dignissim consectetuer nullam lorem vestibulum habitant conubia elementum pellentesque morbi facilisis arcu sollicitudin diam cubilia aptent vestibulum auctor eget dapibus pellentesque inceptos leo egestas interdum nulla consectetuer suspendisse adipiscing pellentesque proin lobortis sollicitudin augue elit mus congue fermentum parturient fringilla euismod feugiat"); - - var group1 = new SampleDataGroup("Group-1", - "Group Title: 1", - "Group Subtitle: 1", - "Assets/DarkGray.png", - "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante"); - group1.Items.Add(new SampleDataItem("Group-1-Item-1", - "Item Title: 1", - "Item Subtitle: 1", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group1)); - group1.Items.Add(new SampleDataItem("Group-1-Item-2", - "Item Title: 2", - "Item Subtitle: 2", - "Assets/DarkGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group1)); - group1.Items.Add(new SampleDataItem("Group-1-Item-3", - "Item Title: 3", - "Item Subtitle: 3", - "Assets/MediumGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group1)); - group1.Items.Add(new SampleDataItem("Group-1-Item-4", - "Item Title: 4", - "Item Subtitle: 4", - "Assets/DarkGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group1)); - group1.Items.Add(new SampleDataItem("Group-1-Item-5", - "Item Title: 5", - "Item Subtitle: 5", - "Assets/MediumGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group1)); - this.AllGroups.Add(group1); - - var group2 = new SampleDataGroup("Group-2", - "Group Title: 2", - "Group Subtitle: 2", - "Assets/LightGray.png", - "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante"); - group2.Items.Add(new SampleDataItem("Group-2-Item-1", - "Item Title: 1", - "Item Subtitle: 1", - "Assets/DarkGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group2)); - group2.Items.Add(new SampleDataItem("Group-2-Item-2", - "Item Title: 2", - "Item Subtitle: 2", - "Assets/MediumGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group2)); - group2.Items.Add(new SampleDataItem("Group-2-Item-3", - "Item Title: 3", - "Item Subtitle: 3", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group2)); - this.AllGroups.Add(group2); - - var group3 = new SampleDataGroup("Group-3", - "Group Title: 3", - "Group Subtitle: 3", - "Assets/MediumGray.png", - "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante"); - group3.Items.Add(new SampleDataItem("Group-3-Item-1", - "Item Title: 1", - "Item Subtitle: 1", - "Assets/MediumGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group3)); - group3.Items.Add(new SampleDataItem("Group-3-Item-2", - "Item Title: 2", - "Item Subtitle: 2", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group3)); - group3.Items.Add(new SampleDataItem("Group-3-Item-3", - "Item Title: 3", - "Item Subtitle: 3", - "Assets/DarkGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group3)); - group3.Items.Add(new SampleDataItem("Group-3-Item-4", - "Item Title: 4", - "Item Subtitle: 4", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group3)); - group3.Items.Add(new SampleDataItem("Group-3-Item-5", - "Item Title: 5", - "Item Subtitle: 5", - "Assets/MediumGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group3)); - group3.Items.Add(new SampleDataItem("Group-3-Item-6", - "Item Title: 6", - "Item Subtitle: 6", - "Assets/DarkGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group3)); - group3.Items.Add(new SampleDataItem("Group-3-Item-7", - "Item Title: 7", - "Item Subtitle: 7", - "Assets/MediumGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group3)); - this.AllGroups.Add(group3); - - var group4 = new SampleDataGroup("Group-4", - "Group Title: 4", - "Group Subtitle: 4", - "Assets/LightGray.png", - "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante"); - group4.Items.Add(new SampleDataItem("Group-4-Item-1", - "Item Title: 1", - "Item Subtitle: 1", - "Assets/DarkGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group4)); - group4.Items.Add(new SampleDataItem("Group-4-Item-2", - "Item Title: 2", - "Item Subtitle: 2", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group4)); - group4.Items.Add(new SampleDataItem("Group-4-Item-3", - "Item Title: 3", - "Item Subtitle: 3", - "Assets/DarkGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group4)); - group4.Items.Add(new SampleDataItem("Group-4-Item-4", - "Item Title: 4", - "Item Subtitle: 4", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group4)); - group4.Items.Add(new SampleDataItem("Group-4-Item-5", - "Item Title: 5", - "Item Subtitle: 5", - "Assets/MediumGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group4)); - group4.Items.Add(new SampleDataItem("Group-4-Item-6", - "Item Title: 6", - "Item Subtitle: 6", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group4)); - this.AllGroups.Add(group4); - - var group5 = new SampleDataGroup("Group-5", - "Group Title: 5", - "Group Subtitle: 5", - "Assets/MediumGray.png", - "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante"); - group5.Items.Add(new SampleDataItem("Group-5-Item-1", - "Item Title: 1", - "Item Subtitle: 1", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group5)); - group5.Items.Add(new SampleDataItem("Group-5-Item-2", - "Item Title: 2", - "Item Subtitle: 2", - "Assets/DarkGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group5)); - group5.Items.Add(new SampleDataItem("Group-5-Item-3", - "Item Title: 3", - "Item Subtitle: 3", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group5)); - group5.Items.Add(new SampleDataItem("Group-5-Item-4", - "Item Title: 4", - "Item Subtitle: 4", - "Assets/MediumGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group5)); - this.AllGroups.Add(group5); - - var group6 = new SampleDataGroup("Group-6", - "Group Title: 6", - "Group Subtitle: 6", - "Assets/DarkGray.png", - "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante"); - group6.Items.Add(new SampleDataItem("Group-6-Item-1", - "Item Title: 1", - "Item Subtitle: 1", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group6)); - group6.Items.Add(new SampleDataItem("Group-6-Item-2", - "Item Title: 2", - "Item Subtitle: 2", - "Assets/DarkGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group6)); - group6.Items.Add(new SampleDataItem("Group-6-Item-3", - "Item Title: 3", - "Item Subtitle: 3", - "Assets/MediumGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group6)); - group6.Items.Add(new SampleDataItem("Group-6-Item-4", - "Item Title: 4", - "Item Subtitle: 4", - "Assets/DarkGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group6)); - group6.Items.Add(new SampleDataItem("Group-6-Item-5", - "Item Title: 5", - "Item Subtitle: 5", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group6)); - group6.Items.Add(new SampleDataItem("Group-6-Item-6", - "Item Title: 6", - "Item Subtitle: 6", - "Assets/MediumGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group6)); - group6.Items.Add(new SampleDataItem("Group-6-Item-7", - "Item Title: 7", - "Item Subtitle: 7", - "Assets/DarkGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group6)); - group6.Items.Add(new SampleDataItem("Group-6-Item-8", - "Item Title: 8", - "Item Subtitle: 8", - "Assets/LightGray.png", - "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.", - ITEM_CONTENT, - group6)); - this.AllGroups.Add(group6); - } - } -} diff --git a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/MainPage.xaml b/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/MainPage.xaml deleted file mode 100644 index 5b977cc9..00000000 --- a/Parse.StarterProjects/CSharp/ParsePushSample/ParsePushSample/MainPage.xaml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - -