summaryrefslogtreecommitdiff
path: root/Source/ModelViewer/Main.cs
diff options
context:
space:
mode:
authorGravatar MichalMoskal <unknown>2010-10-26 01:36:51 +0000
committerGravatar MichalMoskal <unknown>2010-10-26 01:36:51 +0000
commitcd2643c9f8b6069771e0e9ab5ff9f33f975ae4f8 (patch)
treef6c09e59862e53a014bc5384195fb068f44483e0 /Source/ModelViewer/Main.cs
parentdcd2453328f448dca66745701038e85563d72bb4 (diff)
Handle aliases better
Diffstat (limited to 'Source/ModelViewer/Main.cs')
-rw-r--r--Source/ModelViewer/Main.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/ModelViewer/Main.cs b/Source/ModelViewer/Main.cs
index 800455f0..609bf571 100644
--- a/Source/ModelViewer/Main.cs
+++ b/Source/ModelViewer/Main.cs
@@ -223,8 +223,15 @@ namespace Microsoft.Boogie.ModelViewer
private void stateList_SelectedIndexChanged(object sender, EventArgs e)
{
+
if (stateList.SelectedItems.Count == 0) return;
var sel = stateList.SelectedItems[0].Index;
+
+ var normalFont = stateList.Font;
+ var boldFont = new Font(normalFont, FontStyle.Bold);
+ stateList.Items[currentState].Font = normalFont;
+ stateList.Items[sel].Font = boldFont;
+
SetState(sel);
}
@@ -294,7 +301,10 @@ namespace Microsoft.Boogie.ModelViewer
if (dn == null) return "";
var sb = new StringBuilder();
+ var canon = dn.CanonicalValue;
foreach (var n in dn.Aliases) {
+ if (n == canon)
+ continue;
sb.Append(n).Append(", ");
if (sb.Length > 300)
break;