-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.优化excel导出
- Loading branch information
Showing
18 changed files
with
541 additions
and
357 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
namespace Masuit.Tools.Hardware; | ||
|
||
/// <summary> | ||
/// BIOS信息 | ||
/// </summary> | ||
public class BiosInfo | ||
{ | ||
private static readonly BiosInfo _local = SystemInfo.GetBiosInfo(); | ||
|
||
/// <summary> | ||
/// 本地实例 | ||
/// </summary> | ||
public static BiosInfo Local => _local; | ||
|
||
/// <summary> | ||
/// ID | ||
/// </summary> | ||
public string ID { get; set; } | ||
|
||
/// <summary> | ||
/// 序列号 | ||
/// </summary> | ||
public string SerialNumber { get; set; } | ||
|
||
/// <summary> | ||
/// 型号 | ||
/// </summary> | ||
public string Model { get; set; } | ||
|
||
/// <summary> | ||
/// 制造商 | ||
/// </summary> | ||
public string Manufacturer { get; set; } | ||
|
||
} |
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
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,9 +1,30 @@ | ||
namespace Masuit.Tools.Hardware | ||
using System.Collections.Generic; | ||
|
||
namespace Masuit.Tools.Hardware; | ||
|
||
/// <summary> | ||
/// 磁盘信息 | ||
/// </summary> | ||
public class DiskInfo | ||
{ | ||
public class DiskInfo | ||
{ | ||
public string SerialNumber { get; set; } | ||
public string Model { get; set; } | ||
public float Total { get; set; } | ||
} | ||
private static readonly List<DiskInfo> _locals = SystemInfo.GetDiskInfo(); | ||
|
||
/// <summary> | ||
/// 本地实例 | ||
/// </summary> | ||
public static List<DiskInfo> Locals => _locals; | ||
/// <summary> | ||
/// 序列号 | ||
/// </summary> | ||
public string SerialNumber { get; set; } | ||
|
||
/// <summary> | ||
/// 型号 | ||
/// </summary> | ||
public string Model { get; set; } | ||
|
||
/// <summary> | ||
/// 总容量 | ||
/// </summary> | ||
public float Total { get; set; } | ||
} |
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.