public void Show(PMenu Menu) { this.Title = Menu.Name; item = Menu; this.Show(); }
public Form1() { InitializeComponent(); AXCommand axcom = new AXCommand(); PMenu testPMenu = new PMenu(); testPMenu.xcom = axcom; Controls.Add(testPMenu); PToolBar testPToolBar = new PToolBar(); testPToolBar.xcom = axcom; // Controls.Add(testPToolBar); }
public PMenuController(IEventAggregator eventAggregator, PMenu pMenu) { EventAggregator = eventAggregator; PMenu = pMenu; PMenu.openToolStripMenuItem.Click += OnOpenFile; }
public void SetUp() { ucommand = new UXCommand(); menuBar = new PMenu(); menuBar.xcom = ucommand; }