Fix #13: Don't hide initialize errors

This commit is contained in:
Gary Sharp
2013-10-17 15:31:50 +11:00
parent faee1e724e
commit 5f9a49bca3
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ namespace Disco.Client.Interop
private static NetworkAdapterInfo PrimaryLanNetworkAdapter { get; set; } private static NetworkAdapterInfo PrimaryLanNetworkAdapter { get; set; }
private static NetworkAdapterInfo PrimaryWlanNetworkAdapter { get; set; } private static NetworkAdapterInfo PrimaryWlanNetworkAdapter { get; set; }
static Network() public static void Initialize()
{ {
// Get All Adapters // Get All Adapters
RetrieveLanAdapters(); RetrieveLanAdapters();
+1 -1
View File
@@ -18,7 +18,7 @@ namespace Disco.Client.Interop
public static string DeviceUUID { get; private set; } public static string DeviceUUID { get; private set; }
public static bool DeviceIsPartOfDomain { get; private set; } public static bool DeviceIsPartOfDomain { get; private set; }
static SystemAudit() public static void Initialize()
{ {
// Get BIOS Information // Get BIOS Information
try try
+4
View File
@@ -59,6 +59,10 @@ namespace Disco.Client
{ {
Presentation.DelayUI = true; // Add Delays on Error Presentation.DelayUI = true; // Add Delays on Error
} }
// Initialize Interop
Interop.SystemAudit.Initialize();
Interop.Network.Initialize();
} }
public static bool WhoAmI() public static bool WhoAmI()