-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored code and embedded used assemblies.
- Loading branch information
1 parent
0295aac
commit 8e5662f
Showing
35 changed files
with
920 additions
and
555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/> | ||
</startup> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,41 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Configuration; | ||
using System.Data; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Runtime.InteropServices; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using WPAppInstall.Misc; | ||
|
||
namespace WPAppInstall | ||
{ | ||
public partial class App : Application | ||
public partial class App : System.Windows.Application | ||
{ | ||
private const String phoneRegDll = "PhoneRegDll.dll"; | ||
|
||
/// <summary> | ||
/// Load embedded assemblies. | ||
/// </summary> | ||
[STAThread] | ||
public static void Main() | ||
{ | ||
EmbeddedAssemblyLoader embeddedAssemblyLoader = new EmbeddedAssemblyLoader(); | ||
embeddedAssemblyLoader.LoadUnmanagedLibraryFromResource(phoneRegDll); | ||
StartProgram(); | ||
} | ||
|
||
/// <summary> | ||
/// Called after loading the neccessary assemblies. | ||
/// </summary> | ||
public static void StartProgram() | ||
{ | ||
var application = new App(); | ||
application.InitializeComponent(); | ||
application.Run(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.