如何将ClearCanvas DesktopForm应用程序菜单的可见性更改为false

时间:2010-04-21 14:13:10

标签: c# .net open-source clearcanvas

我尝试在ClearCanvas开源资源上编写PACS应用程序。但是我可以通过DestopForm只有_mainmenu的可见性变成虚假阶段。

// _mainMenu

this._mainMenu.BackColor = System.Drawing.SystemColors.ActiveCaption;
this._mainMenu.Dock = System.Windows.Forms.DockStyle.None;
this._mainMenu.ImageScalingSize = new System.Drawing.Size(24, 24);
this._mainMenu.Location = new System.Drawing.Point(0, 0);
this._mainMenu.Name = "_mainMenu";
this._mainMenu.Size = new System.Drawing.Size(792, 24);
this._mainMenu.TabIndex = 4;
this._mainMenu.Text = "menuStrip1";
this._mainMenu.Visible = false;

alt text http://i40.tinypic.com/14snuom.png

我可以做每一个表格活动。但是能见度让我感觉很有意义。我怎么能这样做?

1 个答案:

答案 0 :(得分:0)

转到DesktopForm.cs 并注释掉

/// <summary>
/// Gets or sets the menu model.
/// </summary>
public ActionModelNode MenuModel
{
   get { return _menuModel; }
   set
   {
     //    _menuModel = value;
     //    BuildToolStrip(ToolStripBuilder.ToolStripKind.Menu, _mainMenu, _menuModel);
   }
 }