Skip to content

Commit be06f59

Browse files
committed
* Changed version number
* Updated theme version * Minor performance fix
1 parent d4cdd0d commit be06f59

File tree

8 files changed

+184
-215
lines changed

8 files changed

+184
-215
lines changed

DeadLock/Forms/FrmAbout.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
#region Copyright Syncfusion Inc. 2001-2015.
2-
// Copyright Syncfusion Inc. 2001-2015. All rights reserved.
3-
// Use of this code is subject to the terms of our license.
4-
// A copy of the current license can be obtained at any time by e-mailing
5-
// licensing@syncfusion.com. Any infringement will be prosecuted under
6-
// applicable laws.
7-
#endregion
81
using System;
92
using System.ComponentModel;
103
using System.Diagnostics;

DeadLock/Forms/FrmMain.Designer.cs

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DeadLock/Forms/FrmMain.cs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
#region Copyright Syncfusion Inc. 2001-2015.
2-
// Copyright Syncfusion Inc. 2001-2015. All rights reserved.
3-
// Use of this code is subject to the terms of our license.
4-
// A copy of the current license can be obtained at any time by e-mailing
5-
// licensing@syncfusion.com. Any infringement will be prosecuted under
6-
// applicable laws.
7-
#endregion
81
using System;
92
using System.Collections.Generic;
103
using System.Diagnostics;
@@ -480,13 +473,10 @@ private void FrmMain_Shown(object sender, EventArgs e)
480473
if (Properties.Settings.Default.ShowAdminWarning)
481474
{
482475
WindowsIdentity identity = WindowsIdentity.GetCurrent();
483-
if (identity != null)
476+
WindowsPrincipal principal = new WindowsPrincipal(identity);
477+
if (!principal.IsInRole(WindowsBuiltInRole.Administrator))
484478
{
485-
WindowsPrincipal principal = new WindowsPrincipal(identity);
486-
if (!principal.IsInRole(WindowsBuiltInRole.Administrator))
487-
{
488-
MessageBoxAdv.Show(l.MsgAdministrator, "DeadLock", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
489-
}
479+
MessageBoxAdv.Show(l.MsgAdministrator, "DeadLock", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
490480
}
491481
}
492482

0 commit comments

Comments
 (0)