Esempio n. 1
0
            public MenuItem(string helpText, Menu.ContextCommand contextcommand, CustomMenuHandler custommenuhandler)
            {
                Contract.Requires(helpText != null);

                this.helpText     = helpText;
                Command           = contextcommand;
                CustomMenuHandler = custommenuhandler;
            }
Esempio n. 2
0
 void IMenuHost.OnAddMenuItem(string helpText, Menu.ContextCommand contextCommand, CustomMenuHandler customMenuHandler)
 {
     menuItems.Add(new MenuItem(helpText, contextCommand, customMenuHandler));
 }
Esempio n. 3
0
 public void OnAddMenuItem(string helpText, Menu.ContextCommand contextCommand, CustomMenuHandler customMenuHandler)
 {
     Contract.Requires(helpText != null);
 }