simplify virtualization message

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@401 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2008-12-24 03:09:58 +00:00
parent 902c3170c2
commit 138e2df8b0
@@ -99,19 +99,13 @@ namespace ProcessHacker
{
bool virtAllowed = token.IsVirtualizationAllowed();
bool virtEnabled = token.IsVirtualizationEnabled();
string virtText;
if (virtAllowed)
virtText = "Virtualization is allowed ";
else
virtText = "Virtualization is not allowed.";
if (virtEnabled)
virtText += "and enabled.";
textVirtualized.Text = "Enabled";
else if (virtAllowed)
virtText += "but disabled.";
textVirtualized.Text = virtText;
textVirtualized.Text = "Disabled";
else
textVirtualized.Text = "Not Allowed";
}
catch (Exception ex)
{