开发者

How can i change ClearCanvas DesktopForm application menu's visibility to false

开发者 https://www.devze.com 2022-12-27 21:10 出处:网络
i try to write a PACS application over ClearCanvas opensource sources. But i can everything over DestopForm only _mainmenu\'s visibility turn intofalse stage.

i try to write a PACS application over ClearCanvas opensource sources. But i can everything over DestopForm only _mainmenu's visibility turn into false stage.

// _mainMenu

this._mainMenu.BackColor = System.Drawing.SystemColors.ActiveCaption;
this._mainMenu.Dock = System.Windo开发者_如何学Pythonws.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;

How can i change ClearCanvas DesktopForm application menu's visibility to false

i can do every form events. But visibility make me too sense.How can i do that?


Go to DesktopForm.cs and comment out

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

精彩评论

暂无评论...
验证码 换一张
取 消