Fix #13: Don't hide initialize errors
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user