public void Show(PMenu Menu)
        {
            this.Title = Menu.Name;
            item       = Menu;

            this.Show();
        }
Example #2
0
        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);
        }
Example #3
0
 public PMenuController(IEventAggregator eventAggregator, PMenu pMenu)
 {
     EventAggregator = eventAggregator;
     PMenu           = pMenu;
     PMenu.openToolStripMenuItem.Click += OnOpenFile;
 }
Example #4
0
 public void SetUp()
 {
     ucommand     = new UXCommand();
     menuBar      = new PMenu();
     menuBar.xcom = ucommand;
 }