diff options
author | 2011-04-01 13:40:09 +0000 | |
---|---|---|
committer | 2011-04-01 13:40:09 +0000 | |
commit | 206566c8843b00478355c0bd3d1cc3400e8b112b (patch) | |
tree | 724ef5996ac15dc5fb6785cf8ea51121f308fa53 /Source/ModelViewer/Main.cs | |
parent | dbc46f4ad9bb162042aa5772d766eda6e0ed2439 (diff) |
model viewer:
Hide and disable file menu when run in hosted mode
Diffstat (limited to 'Source/ModelViewer/Main.cs')
-rw-r--r-- | Source/ModelViewer/Main.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/ModelViewer/Main.cs b/Source/ModelViewer/Main.cs index 009a22a7..68027609 100644 --- a/Source/ModelViewer/Main.cs +++ b/Source/ModelViewer/Main.cs @@ -15,7 +15,7 @@ namespace Microsoft.Boogie.ModelViewer {
public partial class Main : Form
{
- public string SearchText;
+ string SearchText;
SkeletonItem unfoldingRoot;
SkeletonItem[] allItems;
int currentState, previousState = -1;
@@ -37,10 +37,16 @@ namespace Microsoft.Boogie.ModelViewer yield return Base.Provider.Instance;
}
- public Main(string[] args)
+ public Main(string[] args, bool runAsHostedWindow = false)
{
InitializeComponent();
+ if (runAsHostedWindow)
+ {
+ this.fileToolStripMenuItem.Enabled = false;
+ this.fileToolStripMenuItem.Visible = false;
+ }
+
viewItems = new ToolStripMenuItem[] {
normalToolStripMenuItem,
expertToolStripMenuItem,
|