refactor: reformat & apply code style

This commit is contained in:
2026-02-25 17:35:45 +07:00
parent b8c0dd8f17
commit 2df650954b
8 changed files with 329 additions and 227 deletions
+12 -6
View File
@@ -7,7 +7,7 @@ namespace TimeMocker.UI
internal static class Program
{
[STAThread]
static void Main()
private static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
@@ -41,12 +41,18 @@ namespace TimeMocker.UI
{
var info = new System.Diagnostics.ProcessStartInfo
{
FileName = Application.ExecutablePath,
FileName = Application.ExecutablePath,
UseShellExecute = true,
Verb = "runas"
Verb = "runas"
};
try { System.Diagnostics.Process.Start(info); }
catch { /* user cancelled UAC */ }
try
{
System.Diagnostics.Process.Start(info);
}
catch
{
/* user cancelled UAC */
}
}
}
}
}