From 138e2df8b078e1d765dfa051ea0be1ea511ca175 Mon Sep 17 00:00:00 2001 From: wj32 Date: Wed, 24 Dec 2008 03:09:58 +0000 Subject: [PATCH] simplify virtualization message git-svn-id: svn://svn.code.sf.net/p/processhacker/code@401 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- trunk/ProcessHacker/Components/TokenProperties.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/trunk/ProcessHacker/Components/TokenProperties.cs b/trunk/ProcessHacker/Components/TokenProperties.cs index 615bdec89..9f251ef90 100644 --- a/trunk/ProcessHacker/Components/TokenProperties.cs +++ b/trunk/ProcessHacker/Components/TokenProperties.cs @@ -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) {