Skip to content

Commit

Permalink
代码结构优化。
Browse files Browse the repository at this point in the history
  • Loading branch information
OdysseusYuan committed Apr 1, 2023
1 parent 8e1cbbc commit cfc1475
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions LKY_OfficeTools/Common/Com_InstallerOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ internal static string GetProductInfo(string msi_path, MsiInfoType msi_info)
try
{
Type oType = Type.GetTypeFromProgID("WindowsInstaller.Installer");
if(oType == null)
if (oType == null)
{
return null;
return null;
}

Installer inst = Activator.CreateInstance(oType) as Installer;
Expand Down
1 change: 0 additions & 1 deletion LKY_OfficeTools/Common/Com_NetworkOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* Developer: [email protected] (Odysseus.Yuan)
*/

using LKY_OfficeTools.Lib;
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
Expand Down
9 changes: 4 additions & 5 deletions LKY_OfficeTools/Common/Com_PrivilegeOS.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
/*
* [LKY Common Tools] Copyright (C) 2022 [email protected] Inc.
* [LKY Common Tools] Copyright (C) 2022 - 2023 [email protected] Inc.
*
* FileName : Com_PrivilegeOS.cs
* Developer: [email protected] (Odysseus.Yuan)
*/

using System;
using System.IO;
using System.Security.Principal;
using static LKY_OfficeTools.Lib.Lib_AppState;
using static LKY_OfficeTools.Lib.Lib_AppInfo;
using static LKY_OfficeTools.Lib.Lib_AppLog;
using static LKY_OfficeTools.Lib.Lib_AppMessage;
using static LKY_OfficeTools.Lib.Lib_AppReport;
using LKY_OfficeTools.Lib;
using static LKY_OfficeTools.Lib.Lib_AppInfo;
using System.IO;
using static LKY_OfficeTools.Lib.Lib_AppState;

namespace LKY_OfficeTools.Common
{
Expand Down
2 changes: 1 addition & 1 deletion LKY_OfficeTools/OfficeTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private static void Entry()
///Header
new Log($"{AppAttribute.AppName} [版本 {AppAttribute.AppVersion}]\n" +
$"版权所有(C)LiuKaiyuan (Odysseus.Yuan)。保留所有权利。\n\n" +
$"探讨 {Console.Title} 相关内容,可发送邮件至:[email protected]", ConsoleColor.Gray);
$"探讨 {AppAttribute.AppName} 相关内容,可发送邮件至:[email protected]", ConsoleColor.Gray);

//清理冗余信息
Log.Clean();
Expand Down

0 comments on commit cfc1475

Please sign in to comment.