mirror of
https://github.com/tiennm99/time-mocker.git
synced 2026-10-12 14:15:16 +00:00
refactor: reformat & apply code style
This commit is contained in:
1 parent
f63317dc64
commit
78b60c8cea
8 files changed
+329
-227
No files matched your search
@@ -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 */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user