Beispiel #1
0
 /// <summary>
 /// Gets the available virtual memory.
 /// </summary>
 private async void GetAvailableVirtualMemory()
 {
     await Task.Run(() =>
     {
         AvaliableMemory = MonahrqDiagnostic.GetTotalAmountOfFreeVirtualMemoryAsString();
     });
 }
Beispiel #2
0
 /// <summary>
 /// Gets the free available total space.
 /// </summary>
 private async void GetFreeAvailableTotalSpace()
 {
     await Task.Run(() =>
     {
         AvaliableSpace = MonahrqDiagnostic.GetHDAvailableFreeSpaceAsString();
     });
 }
Beispiel #3
0
 /// <summary>
 /// Determines whether this instance is administrator.
 /// </summary>
 /// <returns></returns>
 public static bool IsAdministrator()
 {
     return(MonahrqDiagnostic.IsAdministrator());
 }
Beispiel #4
0
 /// <summary>
 /// Checks if connected to internet.
 /// </summary>
 /// <param name="throwEvent">if set to <c>true</c> [throw event].</param>
 /// <returns></returns>
 public static bool CheckIfConnectedToInternet(bool throwEvent = true)
 {
     return(MonahrqDiagnostic.CheckIfConnectedToInternet(throwEvent));
 }